import type { Icon } from "./icon.js"; interface BaseConfirmOptions { /** * Label for the "Cancel" button. * * Defaults to "Cancel". * @default "Cancel" */ cancelLabel?: string; /** * Label for the "Confirm" button. * * Defaults to "OK". * @default "OK" */ confirmLabel?: string; /** * Icon to display on the confirm button. */ confirmIcon?: Icon; /** * Variant of the "confirm" button. * * Defaults to "primary". * @default "primary" */ confirmVariant?: "primary" | "secondary" | "secondary-destructive" | "destructive"; } interface ConfirmNoTextOptions extends BaseConfirmOptions { /** * Title of the prompt. */ title: string; /** * No text will be displayed. */ text?: never; } interface ConfirmNoTitleOptions extends BaseConfirmOptions { /** * No title will be displayed. */ title?: never; /** * Text to display */ text: string; } interface ConfirmWithTextAndTitleOptions extends BaseConfirmOptions { /** * Title of the prompt. */ title: string; /** * Text to display below the title. */ text: string; } export type ConfirmOptions = ConfirmNoTextOptions | ConfirmNoTitleOptions | ConfirmWithTextAndTitleOptions; /** * Shows a confirm prompt to the user. * * @example * * import {confirm} from "attio/client"; * * await confirm({ * title: "Are you sure you want to delete this item?", * text: "This action cannot be undone.", * cancelLabel: "Cancel", * confirmLabel: "Delete", * }); */ export declare function confirm(options: ConfirmOptions): Promise; export {}; //# sourceMappingURL=confirm.d.ts.map