amis-rpc-design/node_modules/antd/lib/button/buttonHelpers.d.ts

15 lines
925 B
TypeScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
import React from 'react';
import type { BaseButtonProps, LegacyButtonType } from './button';
export declare const isTwoCNChar: any;
export declare function convertLegacyProps(type?: LegacyButtonType): Pick<BaseButtonProps, 'danger' | 'type'>;
export declare function isString(str: any): str is string;
export declare function isUnBorderedButtonType(type?: ButtonType): boolean;
export declare function spaceChildren(children: React.ReactNode, needInserted: boolean): (number | React.JSX.Element)[] | null | undefined;
declare const ButtonTypes: readonly ["default", "primary", "dashed", "link", "text"];
export type ButtonType = typeof ButtonTypes[number];
declare const ButtonShapes: readonly ["default", "circle", "round"];
export type ButtonShape = typeof ButtonShapes[number];
declare const ButtonHTMLTypes: readonly ["submit", "button", "reset"];
export type ButtonHTMLType = typeof ButtonHTMLTypes[number];
export {};