import { type ReactElement } from 'react'; import { alert, closeAll, confirm, openDialog, prompt } from './api'; export interface DialogHostProps { /** when this value changes, every open dialog is dismissed, e.g. pass the pathname */ dismissKey?: unknown; } export declare function DialogHost({ dismissKey }: DialogHostProps): ReactElement; declare const dialogs: { alert: typeof alert; confirm: typeof confirm; prompt: typeof prompt; openDialog: typeof openDialog; closeAll: typeof closeAll; }; /** The same functions as the module exports, so a component reads as one that opens dialogs. */ export declare function useDialog(): typeof dialogs; export {};