import { EventEmitter } from '../../stencil-public-runtime'; import { IxModalSize } from './modal.types'; export declare class Modal { private ariaAttributes; private isMouseDownInsideDialog; hostElement: HTMLIxModalElement; /** * Modal size */ size: IxModalSize; /** * Should the modal animation be disabled */ disableAnimation: boolean; /** * Hide the backdrop behind the modal dialog */ hideBackdrop: boolean; /** * Dismiss modal on backdrop click */ closeOnBackdropClick: boolean; /** * Is called before the modal is dismissed. * * - Return `true` to proceed in dismissing the modal * - Return `false` to abort in dismissing the modal */ beforeDismiss?: (reason?: unknown) => boolean | Promise; /** * Centered modal */ centered: boolean; /** * If set to true the modal cannot be closed by pressing the Escape key */ disableEscapeClose: boolean; /** * Dialog close */ dialogClose: EventEmitter; /** * Dialog cancel */ dialogDismiss: EventEmitter; modalVisible: boolean; onKey(e: KeyboardEvent): void; get dialog(): HTMLDialogElement | null; private slideInModal; private slideOutModal; private closeDialog; private isInsideDialog; private onMouseDown; private onMouseUp; /** * Show the dialog */ showModal(): Promise; /** * Dismiss the dialog */ dismissModal(reason?: T): Promise; /** * Close the dialog */ closeModal(reason: T): Promise; componentWillLoad(): void; render(): any; }