import { LitElement } from 'lit'; /** * Wrap elements with this to make them modal. * * @slot - Dialog content. * @fires sw-modal-close - Cancelable. Fired on ESC or backdrop click; call * `preventDefault()` to keep the modal open. */ export declare class SwUiModal extends LitElement { static styles: import("lit").CSSResult; open: boolean; private dialog; private _savedOverflow; updated(changed: Map): void; private _animateClose; /** ESC key — intercept native close and route through `_requestClose`. */ private _handleCancel; /** Backdrop click — the `` itself is the backdrop target. */ private _handleBackdropClick; /** Dispatch a cancelable `sw-modal-close`; only close if not prevented. */ private _requestClose; connectedCallback(): void; disconnectedCallback(): void; render(): import("lit-html").TemplateResult<1>; } declare global { interface HTMLElementTagNameMap { 'sw-ui-modal': SwUiModal; } } //# sourceMappingURL=sw-ui-modal.d.ts.map