import { LitElement } from 'lit'; import '../button'; /** * Modal. * @slot unnamed - Slot for modal body content. * @slot anchor - Slot for the anchor button content. * @slot header-inline - Slot for an inline header action (badge/button) rendered next to the title/label when using the default header. * @slot footer - Slot for the footer content which replaces the ok, cancel, and second ary buttons. * @fires on-close - Emits the modal close event with `returnValue` (`'ok'` or `'cancel'`).`detail:{ origEvent: PointerEvent,returnValue: string }` * @fires on-open - Emits the modal open event. */ export declare class Modal extends LitElement { static styles: import("lit").CSSResult[]; /** Modal open state. */ accessor open: boolean; /** Modal size. `'auto'`, `'md'`, or `'lg', or `'xl'`. */ accessor size: string; /** Title/heading text, required. */ accessor titleText: string; /** Label text, optional. */ accessor labelText: string; /** OK button text. */ accessor okText: string; /** Cancel button text. */ accessor cancelText: string; /** Changes the primary button styles to indicate the action is destructive. */ accessor destructive: boolean; /** Disables the primary button. */ accessor okDisabled: boolean; /** Disables the secondary button. */ accessor secondaryDisabled: boolean; /** Hides the footer/action buttons to create a passive modal. */ accessor hideFooter: boolean; /** Secondary button text. */ accessor secondaryButtonText: string; /** Hides the secondary button. */ accessor showSecondaryButton: boolean; /** Hides the cancel button. */ accessor hideCancelButton: boolean; /** Function to execute before the modal can close. Useful for running checks or validations before closing. Exposes `returnValue` (`'ok'` or `'cancel'`). Must return `true` or `false`. */ accessor beforeClose: Function; /** Close button text. */ accessor closeText: string; /** Apply gradient to modal background */ accessor gradientBackground: boolean; /** The dialog element * @internal */ accessor _dialog: any; /** Determines if the component is themed for GenAI.*/ accessor aiConnected: boolean; /** Disables scroll on the modal body to allow scrolling of nested elements inside. */ accessor disableScroll: boolean; render(): import("lit-html").TemplateResult<1>; private _openModal; private _closeModal; private _emitCloseEvent; private _emitOpenEvent; updated(changedProps: any): void; } declare global { interface HTMLElementTagNameMap { 'kyn-modal': Modal; } } //# sourceMappingURL=modal.d.ts.map