import { ToastOptions } from './components/primitives/baht-toast.js'; export type DialogTone = 'info' | 'success' | 'warning' | 'danger'; export interface DialogOptions { /** Modal heading (also its accessible name). Each API has a dry default. */ title?: string; tone?: DialogTone; confirmText?: string; cancelText?: string; /** Secondary monospace block under the message (error detail, payload, …). */ detail?: string; /** Allow Escape to cancel. Default true. A scrim click never cancels. */ dismissible?: boolean; } export interface PromptOptions extends DialogOptions { placeholder?: string; /** Initial input value. */ value?: string; /** * A textarea of this many rows instead of one line, for a reason or a note. * Enter adds a line; Ctrl/⌘+Enter confirms. */ multiline?: number; } export type DialogReason = 'confirm' | 'cancel' | 'escape' | 'scrim' | 'detached'; export interface DialogResult { confirmed: boolean; reason: DialogReason; /** Input value (prompt only). */ value?: string; } export declare const dialog: { /** Yes/no question. Resolves true only on explicit confirm. */ confirm(message: string, options?: DialogOptions): Promise; /** One-button notice. Resolves when acknowledged. */ alert(message: string, options?: DialogOptions): Promise; /** Error notice — danger tone, optional monospace `detail`. */ error(message: string, options?: DialogOptions): Promise; /** Single text input. Resolves the value, or null on cancel/dismiss. */ prompt(message: string, options?: PromptOptions): Promise; }; type ToastShorthand = Omit; export declare const toast: { show(message: string, options?: Omit): number; success: (message: string, options?: ToastShorthand) => number; info: (message: string, options?: ToastShorthand) => number; warning: (message: string, options?: ToastShorthand) => number; danger: (message: string, options?: ToastShorthand) => number; dismiss(id: number): void; }; export {};