import type { ButtonColor } from '../Button/index.js'; import type { ReactNode } from 'react'; export interface ConfirmOptions { title: ReactNode; message?: ReactNode; confirmLabel?: string; cancelLabel?: string; danger?: boolean; /** Confirm button colour; wins over `danger`. */ color?: ButtonColor; } /** * Imperative confirmation. Render `confirmDialog` once in the tree, then * `await confirm({ title, message })` to get a boolean. */ export declare function useConfirm(): { confirm: (options: ConfirmOptions) => Promise; confirmDialog: import("react").ReactElement> | null; };