import { LitElement, type PropertyValues } from 'lit'; import { type NuiType } from '../../types/nui-type.js'; import { type NuiDialogViewState } from './logic.js'; import type { DialogPosition, NuiDialogEventMap } from './types.js'; export type { NuiDialogEventMap }; /** * @slot header - header slot content * @slot - Default slot content * @slot footer - footer slot content */ export declare class NuiDialog extends LitElement implements NuiDialogViewState { visible: boolean; header: string; footer: string; modal: boolean; closable: boolean; closeOnEscape: boolean; dismissableMask: boolean; position: DialogPosition; width: string; unstyled: boolean; nuiType: NuiType; dialogClass: string; hasHeaderSlot: boolean; hasFooterSlot: boolean; private wasVisible; private pendingCloseEvent?; private isClosing; private static readonly CLOSE_DURATION_MS; protected createRenderRoot(): DocumentFragment | HTMLElement; protected firstUpdated(): void; protected updated(changed: PropertyValues): void; private getDialogElement; private syncDialogOpenState; private waitForCloseAnimation; private animateClose; private emitClose; private requestClose; private handleDialogClick; private handleDialogClose; private handleDialogCancel; private handleCloseClick; private handleHeaderSlotChange; private handleFooterSlotChange; render(): import("lit-html").TemplateResult; } export interface NuiDialog { addEventListener( type: K, listener: (this: NuiDialog, ev: NuiDialogEventMap[K]) => void, options?: boolean | AddEventListenerOptions, ): void; addEventListener( type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions, ): void; removeEventListener( type: K, listener: (this: NuiDialog, ev: NuiDialogEventMap[K]) => void, options?: boolean | AddEventListenerOptions, ): void; removeEventListener( type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions, ): void; } declare global { interface HTMLElementTagNameMap { 'nui-dialog': NuiDialog; } } //# sourceMappingURL=nui-dialog.d.ts.map