import type { LoomiModal, LoomiModalType } from "./loomi-modal.js"; import "./loomi-modal.js"; export interface LoomiConfirmOptions { /** Secondary text under the message. Set with `textContent`, never parsed as HTML. */ body?: string; /** Icon and accent colour. Defaults to `warning`. */ type?: LoomiModalType; /** OK button label. Defaults to the localised "Okay". */ okLabel?: string; /** Cancel button label. Defaults to the localised "Cancel". */ cancelLabel?: string; /** Dialog width. Defaults to `small`. */ size?: LoomiModal["size"]; } /** * Promise-based counterpart to `window.confirm()`. Resolves `true` only when OK is clicked; * Cancel, Escape, a backdrop click and the close icon resolve `false`. * * One `` is reused. A call made while a dialog is open is queued and shown * after the current one is dismissed, in call order; no call is ever rejected. */ export declare function loomiConfirm(message: string, options?: LoomiConfirmOptions): Promise; declare global { interface Window { loomiConfirm: typeof loomiConfirm; } } //# sourceMappingURL=loomi-confirm.d.ts.map