import { DialogElement } from './dialog-element'; import { Exportable } from './exportable'; export declare class Dialog implements Exportable { triggerId: string; dialog: { callbackId: string; title: string; state?: string; submitLabel?: string; notifyOnCancel?: boolean; elements?: DialogElement[]; }; constructor(triggerId: string, callbackId: string, title: string); export: Exportable['export']; readonly updateCallbackId: (cb: (callbackId: string) => string) => void; readonly updateTitle: (cb: (title: string) => string) => void; readonly setState: (value: string) => void; /** * defaults `submit` */ readonly setSubmitLabel: (value: string) => void; readonly setNotifyOnCancel: (value: boolean) => void; readonly addElement: (element: DialogElement) => void; }