/**
 * Modal type definitions
 * @countermeasure/web-components/components/modal
 */
export type ModalVariant = 'confirm' | 'form' | 'alert';
export interface ModalConfig {
    /** Modal heading text. */
    title: string;
    /**
     * Modal layout / footer button preset.
     * @default 'alert'
     */
    variant?: ModalVariant;
    /** Body content rendered between the title and footer. */
    body?: string | HTMLElement;
    /**
     * Label for the primary action button.
     * @default 'OK'
     */
    confirmLabel?: string;
    /**
     * Label for the cancel button (when shown).
     * @default 'Cancel'
     */
    cancelLabel?: string;
    /** Called when the user activates the confirm button. */
    onConfirm?: () => void | Promise<void>;
    /** Called when the user dismisses the modal via cancel/backdrop/Esc. */
    onCancel?: () => void;
    /**
     * Close the modal when the backdrop is clicked.
     * @default true
     */
    closeOnBackdrop?: boolean;
    /**
     * Close the modal when the Escape key is pressed.
     * @default true
     */
    closeOnEscape?: boolean;
}
//# sourceMappingURL=types.d.ts.map