import { ReactNode } from "react"; import type { ModalProps as AuiModalProps } from "@atomintl/aui-next"; import type { BaseButtonProps } from "../Button/interface"; export declare type ModalActionsButton = Partial>; export interface BaseNtsModalProps { /** * 是否隐藏弹窗head * @default false * */ hideHead?: boolean; /** * 是否隐藏弹窗actions * @default false * */ hideActions?: boolean; /** * 设置取消按钮 * variant展现形式 * @default "outlined" * color颜色 * @default "gray" */ cancelConfig?: ModalActionsButton; /** * 设置确认按钮 * variant展现形式 * @default "contained" * color颜色 * @default "primary" * size尺寸大小 * @default "medium" */ confirmConfig?: ModalActionsButton; /** * 设置弹窗class */ classes?: { head?: string; content?: string; actions?: string; }; } export declare type ModalProps = BaseNtsModalProps & AuiModalProps; export declare type ModalHeadProps = Pick; export declare type ModalContentProps = Pick; export declare type ModalActionsProps = Pick; export declare type ModalConfimProps = Omit & { content: string | ReactNode; };