import { EventEmitter, OnDestroy } from "@angular/core"; export declare type ModalPosition = "left" | "right" | null; export declare type ModalSize = "lg" | "sm" | null; declare type NgClassType = { [klass: string]: any; }; /** The modal component provides a solid foundation for creating dialogs or slideout modals */ export declare class ModalComponent implements OnDestroy { /** * Keeps track of whether the toggle prop is pristine or not. * It's only used to not render `hide` class when the component just rendered. */ private hidden; private _toggle; /** Modal size follows bootstrap sizes: `lg` and `sm` */ size?: ModalSize; /** Modal position. Available positions: `left`, `right` */ position?: ModalPosition; /** Centers the modal in the middle of the screen. Default is `false` */ centered?: boolean; /** Expands the modal to cover the whole screen. Default is `false` */ fullscreen?: boolean; /** The ability to dismiss the modal when the backdrop is clicked. Default is true */ backdropDismiss?: boolean; /** A toggle that shows a close button at the top right corner. Default is true */ closeButton?: boolean; /** Fires a dismiss output when the escape key is registered. Default is true */ escapeToDismiss?: boolean; /** Element class */ className?: string; /** Element id */ id?: string; /** Disability descriptor */ ariaLabel?: string; /** Disability descriptor */ ariaLabelledby?: string; /** Disability descriptor */ ariaDescribedby?: string; /** Modal toggle */ get toggle(): boolean; set toggle(toggle: boolean); /** Event triggered when the modal is dismissed. Can be triggered with close button or backdrop click */ dismiss: EventEmitter; get modalClassName(): NgClassType; get dialogClassName(): NgClassType; animationEnded(e: TransitionEvent): void; /** * Dismisses the modal * @param e clicked element */ backdropClick(e: MouseEvent): void; escapeKeyListener: (e: KeyboardEvent) => void; ngOnDestroy(): void; } export {};