import { CustomElement } from "./custom-element.js"; import { BooleanAttributeDirective } from "./utils/boolean-attribute-directive.js"; import { CommandDirective } from "./utils/command-directive.js"; import { PropertyValues, TemplateResult } from "lit"; declare const DialogDirective: BooleanAttributeDirective<"data-odx-dialog">; type DialogLayer = (typeof DialogLayer)[keyof typeof DialogLayer]; declare const DialogLayer: { readonly PAGE: "page"; readonly SCREEN: "screen"; readonly CONTAINER: "container"; }; declare const DialogShowCommand: CommandDirective<"odx-dialog-show">; declare const DialogDismissCommand: CommandDirective<"odx-dialog-dismiss">; declare const DialogCloseCommand: CommandDirective<"odx-dialog-close">; declare class DialogShowEvent extends Event { static readonly eventName = "dialog-show"; constructor(eventInit?: EventInit); } declare class DialogCloseEvent extends CustomEvent<{ returnValue?: string; }> { static readonly eventName = "dialog-close"; constructor(eventInit?: CustomEventInit<{ returnValue?: string; }>); } /** * @summary Base element for dialog components * * @csspart base * * @slot - Default slot * * @event {DialogShowEvent} dialog-show - Emitted when the dialog is requested to be shown. Can be canceled to prevent showing * @event {DialogCloseEvent} dialog-close - Emitted when the dialog is requested to be closed. Can be canceled to prevent closing */ declare class DialogElement extends CustomElement { #private; private static initialized; static readonly styles: import("lit").CSSResult[]; backdropDisabled: boolean; blocking: boolean; layer: DialogLayer; open: boolean; get canShow(): boolean; get canClose(): boolean; get canDismiss(): boolean; constructor(); show(): Promise; close(returnValue?: string): Promise; dismiss(): Promise; toggle(state?: boolean, returnValue?: string): Promise; connectedCallback(): void; disconnectedCallback(): void; showPopover(): void; hidePopover(): void; togglePopover(state?: boolean): boolean; protected updated(props: PropertyValues): void; protected render(): TemplateResult; } export { DialogCloseCommand, DialogCloseEvent, DialogDirective, DialogDismissCommand, DialogElement, DialogLayer, DialogShowCommand, DialogShowEvent };