import type { ReactNode } from 'react'; import type { OperationItemConfig } from '../index'; export type OptBoxDefaultOpt = 'ok' | 'cancel'; export interface OptBoxProps { show: boolean; width?: number | string; title?: ReactNode; opts?: OperationItemConfig[] | null; onOpt?: (optKey: K) => void; okOpt?: Omit, 'key'> | null; cancelOpt?: Omit, 'key'> | null; children?: ReactNode; destroyOnClose?: boolean; spin?: boolean; size?: OperationItemConfig['size']; hideCloseIcon?: boolean; } export { Modal } from './modal'; export { Drawer } from './drawer';