import { type HandlerEvent } from "@godown/element"; import { type PropertyValues, type TemplateResult } from "lit"; import GlobalStyle from "../../internal/global-style.js"; /** * {@linkcode Dialog} similar to ``. * * Like dialog, it listens for submit events and closes itself when the target method is "dialog". * * Previous versions of Dialog did not contain triggers. * Therefore, unlike Tooltip which uses the default slot as the trigger. * Dialog needs to use slot="trigger" as the trigger instead of an element without a slot name. * * @fires change - Fires when the open changes. * @slot trigger - The trigger element. * @slot - The dialog content. * @category feedback */ declare class Dialog extends GlobalStyle { open: boolean; modal: boolean; /** * Indicates whether the modal has been invoked. */ private __modalInvoke; protected _dialog: HTMLDialogElement; protected render(): TemplateResult<1>; showModal(): void; show(): void; close(): void; toggle(to?: boolean): void; private __submitEvent; private __keydownEvent; protected updated(changedProperties: PropertyValues): void; protected _handleKeydown(e: KeyboardEvent): void; protected _handelSubmit(e: HandlerEvent): void; } export default Dialog; export { Dialog };