import { default as React } from 'react'; export type ConfirmStatus = "normal" | "caution" | "serious" | "critical"; export interface ConfirmOptions { /** Dialog title */ title: string; /** Description text (string or React node) */ message?: React.ReactNode; /** Status level (determines icon/border color) */ status?: ConfirmStatus; /** Confirm button label (default: "Confirm") */ confirmLabel?: string; /** Cancel button label (default: "Cancel") */ cancelLabel?: string; /** Destructive action styling (red confirm button) */ destructive?: boolean; } export interface ConfirmDialogProps extends ConfirmOptions { /** Open state */ open: boolean; /** Close handler */ onClose: () => void; /** Confirm handler */ onConfirm: () => void; } export declare const ConfirmDialog: React.NamedExoticComponent; /** * Imperative confirmation hook. * Must be used within ``. * * @example * ```tsx * const confirm = useConfirm(); * const ok = await confirm({ title: 'Delete?', status: 'critical', destructive: true }); * ``` */ export declare function useConfirm(): (options: ConfirmOptions) => Promise; /** * Provider for the useConfirm() hook. * Renders the confirmation dialog as needed. */ export declare const ConfirmProvider: React.NamedExoticComponent<{ children: React.ReactNode; }>; export default ConfirmDialog;