import { IContainer, IResolver } from '@aurelia/kernel'; import { IDialogService, IDialogController, IDialogGlobalSettings } from './dialog-interfaces'; import type { DialogOpenPromise, IDialogSettings } from './dialog-interfaces'; /** * A default implementation for the dialog service allowing for the creation of dialogs. */ export declare class DialogService implements IDialogService { static register(container: IContainer): void; /** * Create a resolver for a child dialog service with the given key. */ static child(key: unknown): IResolver; get controllers(): IDialogController[]; constructor(container?: IContainer, baseGlobalSettings?: IDialogGlobalSettings, baseSettings?: IDialogSettings); /** * Opens a new dialog. * * @param settings - Dialog settings for this dialog instance. * @returns A promise that settles when the dialog is closed. * * Example usage: * ```ts * dialogService.open({ component: () => MyDialog, template: 'my-template' }) * dialogService.open({ component: () => MyDialog, template: document.createElement('my-template') }) * * // JSX to hyperscript * dialogService.open({ component: () => MyDialog, template: }) * * dialogService.open({ component: () => import('...'), template: () => fetch('my.server/dialog-view.html') }) * ``` */ open(settings: IDialogSettings): DialogOpenPromise; /** * Closes all open dialogs at the time of invocation. * * @returns All controllers whose close operation was cancelled. */ closeAll(): Promise; createChild(baseSettings: IDialogSettings): DialogService; } //# sourceMappingURL=dialog-service.d.ts.map