import { EventEmitter } from '../../stencil-public-runtime'; /** * Context interface for Dialog component */ export interface DialogContext { isOpen: boolean; modal: boolean; titleId: string; descriptionId: string; /** * Whether a click on seki-dialog-overlay closes the dialog. Absent means * true; seki-alert-dialog publishes false (alert dialogs close only via * Cancel, Action or Escape, as in shadcn/Radix). */ dismissOnOverlayClick?: boolean; open: () => Promise; close: () => Promise; } /** * Dialog root component for modal dialogs * * @slot - Dialog trigger, overlay, and content * * @part dialog - The main container */ export declare class SekiDialog { el: HTMLElement; private static instanceCount; private instanceId; /** * Controlled open state */ open: boolean; /** * Default open state */ defaultOpen: boolean; /** * Whether the dialog is modal (traps focus, blocks scroll) */ modal: boolean; /** * Internal state for open */ _isOpen: boolean; /** * Emitted when open state changes */ sekiOpenChange: EventEmitter; /** * Internal: notifies dialog parts (content, overlay, title, description) * that `_dialogContext` changed. Not part of the public API; listen to * `sekiOpenChange` instead. */ dialogContextChange: EventEmitter; constructor(); componentWillLoad(): void; handleModalChange(): void; handleOpenPropChange(newValue: boolean): void; private get titleId(); private get descriptionId(); /** * Opens the dialog */ openDialog(): Promise; /** * Closes the dialog */ closeDialog(): Promise; handleTriggerClick(): void; handleCloseRequest(): void; private getContext; private publish; render(): any; }