import { LitElement, type PropertyValues } from 'lit'; import { SheriffEvent } from '../types'; import '../sds-icon/sds-icon'; import '../sds-button/sds-button'; type ClosedBy = 'none' | 'closerequest' | 'any'; export interface SDSDialogProps { open?: boolean; /** * Set if dialog opens as a modal or not * * If non-modal, the user is allowed to interact with content outside of the dialog. * If modal, the dialog is placed in the top layer with a ::backdrop pseudo-element. * * Docs: * - https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/show * - https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/showModal */ modal?: boolean; /** * Set what type of dismiss behavior closes the dialog * - 'none': Dialog can only be closed programmatically * - 'closerequest': Dialog closes on ESC key (default) * - 'any': Dialog closes on ESC key or clicking outside * * Docs: https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/closedBy */ closedby?: ClosedBy; 'close-button-label'?: string; } declare const SDSDialog_base: import("../mixins/types").Constructable & typeof LitElement; export declare class SDSDialog extends SDSDialog_base { static styles: import("lit").CSSResult[]; open: boolean; modal: boolean; closedby: ClosedBy; closeButtonLabel: string; private _dialog; private headerSlotElements; private _pointerDownInside; firstUpdated(): void; updated(changedProperties: PropertyValues): void; private _setupEventListeners; private _openDialog; private _closeDialog; private readonly _handleClose; private readonly _handleClick; private readonly _handlePointerDown; private readonly _handlePointerUp; private readonly _handleCancel; private readonly _handleAutoFocus; show(): void; showModal(): void; close(): void; render(): import("lit-html").TemplateResult<1>; } declare global { interface HTMLElementTagNameMap { 'sds-dialog': SDSDialog; } interface GlobalEventHandlersEventMap { 'sds-close': SheriffEvent; } } export {}; //# sourceMappingURL=sds-dialog.d.ts.map