interface ModalBase { title: string; } export type AlertModal = ModalBase & { type: 'alert'; message: string; yesPhrase?: string; }; export type ConfirmModal = ModalBase & { type: 'confirm'; message: string; yesPhrase?: string; noPhrase?: string; }; export type PromptModal = ModalBase & { type: 'prompt'; label: string; default?: string; yesPhrase?: string; noPhrase?: string; }; export type Modal = AlertModal | ConfirmModal | PromptModal; export type WrappedAlertModal = AlertModal & { onYes?: () => void; }; export type WrappedConfirmModal = ConfirmModal & { onYes?: () => void; onNo?: () => void; }; export type WrappedPromptModal = PromptModal & { onYes?: (value: string) => void; onNo?: () => void; }; export type WrappedModal = { id: string; } & (WrappedAlertModal | WrappedPromptModal | WrappedConfirmModal); export declare const modals: import("svelte/store").Writable; export declare const showPromptModal: (opts: Omit) => Promise; export declare const showConfirmModal: (opts: Omit) => Promise; export declare const showAlertModal: (opts: Omit) => Promise; export {};