/** * @import { Theme } from '#utilities' */ export const confirmModel: import("vue").ShallowReactive<{ show: boolean; content: { theme: Theme; icon: string; title: string; description?: string; confirmLabel: string; declineLabel: string; }; waitingConfirmation: boolean; /** @type { (() => void) | ((response: boolean) => Promise) } */ resolve: (() => void) | ((response: boolean) => Promise); }>; /** * @param { string } theme * @param { object } request * @param { string } request.title * @param { string } [request.description] * @param { string } [request.confirmLabel] * @param { string } [request.declineLabel] * @param { string } [request.icon] * @param { () => void | Promise } [request.onConfirmed] * @param { () => void | Promise } [request.onDeclined] * @returns { Promise } */ export function confirm(theme: string, { title, description, confirmLabel, declineLabel, icon, onConfirmed, onDeclined }: { title: string; description?: string | undefined; confirmLabel?: string | undefined; declineLabel?: string | undefined; icon?: string | undefined; onConfirmed?: (() => void | Promise) | undefined; onDeclined?: (() => void | Promise) | undefined; }): Promise; import type { Theme } from '#utilities'; //# sourceMappingURL=index.d.ts.map