import { DisplayObject } from "pixi.js"; import { DControllerFocus, DFocusable } from "./d-controller-focus"; import { DDialog, DDialogEvents, DDialogOptions, DThemeDialog } from "./d-dialog"; import { DDialogLayeredContent, DDialogLayeredContentOptions } from "./d-dialog-layered-content"; import { DDialogLayeredFooter, DDialogLayeredFooterOptions } from "./d-dialog-layered-footer"; import { DDialogLayeredHeader, DDialogLayeredHeaderOptions } from "./d-dialog-layered-header"; import { DLayoutVertical, DLayoutVerticalOptions } from "./d-layout-vertical"; import { DOnOptions } from "./d-on-options"; /** * {@link DDialogLayered} events. */ export interface DDialogLayeredEvents extends DDialogEvents { /** * Triggered when a dialog is successfully finished. * * @param value a value * @param emitter an emitter */ ok(value: VALUE, emitter: EMITTER): void; /** * Triggered when a dialog is canceled. * * @param reason a reason why canceled * @param emitter an emitter */ cancel(reason: any, emitter: EMITTER): void; } /** * {@link DDialogLayered} "on" options. */ export interface DDialogLayeredOnOptions extends Partial>, DOnOptions { } /** * {@link DDialogLayered} options. */ export interface DDialogLayeredOptions extends DDialogOptions { /** * A layout options. */ layout?: DLayoutVerticalOptions; /** * A header options. */ header?: DDialogLayeredHeaderOptions | null; /** * Content options. */ content?: DDialogLayeredContentOptions; /** * A footer options. */ footer?: DDialogLayeredFooterOptions | null; /** * Mappings of event names and handlers. */ on?: DDialogLayeredOnOptions; } /** * {@link DDialogLayered} theme. */ export interface DThemeDialogLayered extends DThemeDialog { getLayout(): DLayoutVerticalOptions | undefined; getHeader(): DDialogLayeredHeaderOptions | undefined | null; getContent(): DDialogLayeredContentOptions | undefined; getFooter(): DDialogLayeredFooterOptions | undefined | null; } /** * A dialog with a header, a content and a footer. */ export declare abstract class DDialogLayered = DDialogLayeredOptions> extends DDialog { protected _layout?: DLayoutVertical; protected _header?: DDialogLayeredHeader | null; protected _content?: DDialogLayeredContent; protected _footer?: DDialogLayeredFooter | null; protected init(options?: OPTIONS): void; get layout(): DLayoutVertical; protected newLayout(): DLayoutVertical; protected toLayoutOptions(theme: THEME, options?: OPTIONS): DLayoutVerticalOptions; protected newLayoutOptions(theme: THEME, options?: OPTIONS): DLayoutVerticalOptions; protected newLayoutChildren(theme: THEME, options?: OPTIONS): Array; get header(): DDialogLayeredHeader | null; protected newHeader(): DDialogLayeredHeader | null; protected toHeaderOptions(theme: THEME, options?: OPTIONS): DDialogLayeredHeaderOptions | undefined | null; get content(): DDialogLayeredContent; protected newContent(): DDialogLayeredContent; protected toContentOptions(theme: THEME, options?: OPTIONS): DDialogLayeredContentOptions; protected newContentChildren(theme: THEME, options?: OPTIONS): Array; get footer(): DDialogLayeredFooter | null; protected newFooter(): DDialogLayeredFooter | null; protected toFooterOptions(theme: THEME, options?: OPTIONS): DDialogLayeredFooterOptions | undefined | null; protected findFirstFocusable(focusController: DControllerFocus): DFocusable | null; ok(): void; protected onOk(value: VALUE | PromiseLike): void; cancel(): void; protected onCancel(reason: any): void; protected abstract getResolvedValue(): VALUE | PromiseLike; protected getRejectReason(): any; protected getType(): string; }