import { default as React } from 'react'; export type DialogConfigMap = Record; type DialogId = Extract; export interface DialogState { id: Id; open: boolean; width: number; position: { right: number; }; dependencies?: readonly Id[]; order: number; } interface DialogStackContextType { dialogs: DialogState>[]; openDialog(id: DialogId): void; closeDialog(id: DialogId): void; getDialogState(id: DialogId): DialogState> | undefined; } export declare function createDialogStack({ config, MAX_DIALOG_WIDTH, }: { config: Config; MAX_DIALOG_WIDTH?: number; }): { DialogStackProvider: React.FC<{ children: React.ReactNode; }>; useDialogStack: () => DialogStackContextType; }; export {};