/** * Modal Component * * Pure wrapper for modal dialogs using the native element. * Provides backdrop, focus management, scroll locking, and keyboard interaction * without imposing any styling on content. * * Features: * - Native dialog element wrapper * - Dual API: declarative (open attribute) and imperative (show/hide methods) * - Protected mode with confirmation dialog * - Auto-hiding close button on hover (desktop only) * - Scroll locking with unique modal IDs * - Customizable backdrop via CSS variables * * @example * *
*

Modal Title

*

Modal content here

* * Close * *
*
*/ /** * Modal attributes configuration */ export interface ModalAttributes { open: boolean; backdrop: boolean; closeOnOutsideClick: boolean; closeOnEscape: boolean; protected: boolean; } /** * Modal close event detail */ export interface ModalCloseDetail { reason: 'programmatic' | 'native'; returnValue?: string; } /** * TyModal Web Component */ export declare class TyModal extends HTMLElement { /** Programmatic API methods */ show?: () => void; hide?: () => void; /** Observed attributes */ static get observedAttributes(): string[]; constructor(); connectedCallback(): void; disconnectedCallback(): void; attributeChangedCallback(_name: string, _oldValue: string | null, _newValue: string | null): void; } //# sourceMappingURL=modal.d.ts.map