import { type ButtonProps } from 'antd'; import { type ReactElement, type ReactNode } from 'react'; import type { CSSProperties } from 'react'; interface ActionBtn extends ButtonProps { text: string | ReactElement; label?: ReactNode; onClick?: () => void; /** * @deprecated * 请不要使用 */ action?: () => void; dropDown?: ({ text: string | ReactElement; label?: ReactNode; onClick?: () => void; disabled?: boolean; } | ReactElement | null)[] | ReactElement; } export interface ActionsProps { actions: (ActionBtn | ReactElement | null)[]; style?: CSSProperties; className?: string; prefixCls?: string; /** * @description 默认无限大 */ maxShowCount?: number; /** * @description 是否自动换行 * @default true */ wrap?: boolean; trackEventAttr?: string; /** * @description 默认按钮类型 */ defaultButtonType?: ButtonProps['type']; } declare function Actions(props: ActionsProps): JSX.Element; export default Actions;