import '../../stencil.core'; import { EventEmitter } from '../../stencil.core'; import { AlertButton, AlertInput, Animation, AnimationBuilder, Config, Mode, OverlayEventDetail, OverlayInterface } from '../../interface'; export declare class Alert implements OverlayInterface { private activeId?; private inputType?; private processedInputs; private processedButtons; presented: boolean; animation?: Animation; mode: Mode; el: HTMLStencilElement; animationCtrl: HTMLIonAnimationControllerElement; config: Config; overlayId: number; keyboardClose: boolean; /** * Animation to use when the alert is presented. */ enterAnimation?: AnimationBuilder; /** * Animation to use when the alert is dismissed. */ leaveAnimation?: AnimationBuilder; /** * Additional classes to apply for custom CSS. If multiple classes are * provided they should be separated by spaces. */ cssClass?: string | string[]; /** * The main title in the heading of the alert. */ header?: string; /** * The subtitle in the heading of the alert. Displayed under the title. */ subHeader?: string; /** * The main message to be displayed in the alert. */ message?: string; /** * Array of buttons to be added to the alert. */ buttons: (AlertButton | string)[]; /** * Array of input to show in the alert. */ inputs: AlertInput[]; /** * If true, the alert will be dismissed when the backdrop is clicked. Defaults to `true`. */ backdropDismiss: boolean; /** * If true, the alert will be translucent. Defaults to `false`. */ translucent: boolean; /** * If true, the alert will animate. Defaults to `true`. */ willAnimate: boolean; /** * Emitted after the alert has presented. */ ionAlertDidLoad: EventEmitter; /** * Emitted before the alert has presented. */ ionAlertDidUnload: EventEmitter; /** * Emitted after the alert has presented. */ didPresent: EventEmitter; /** * Emitted before the alert has presented. */ willPresent: EventEmitter; /** * Emitted before the alert has dismissed. */ willDismiss: EventEmitter; /** * Emitted after the alert has dismissed. */ didDismiss: EventEmitter; buttonsChanged(): void; inputsChanged(): void; componentWillLoad(): void; componentDidLoad(): void; componentDidUnload(): void; protected onBackdropTap(): void; protected dispatchCancelHandler(ev: CustomEvent): void; /** * Present the alert overlay after it has been created. */ present(): Promise; /** * Dismiss the alert overlay after it has been presented. */ dismiss(data?: any, role?: string): Promise; /** * Returns a promise that resolves when the alert did dismiss. It also accepts a callback * that is called in the same circumstances. * */ onDidDismiss(callback?: (detail: OverlayEventDetail) => void): Promise; /** * Returns a promise that resolves when the alert will dismiss. It also accepts a callback * that is called in the same circumstances. * */ onWillDismiss(callback?: (detail: OverlayEventDetail) => void): Promise; private rbClick; private cbClick; private buttonClick; private callButtonHandler; private getValues; private renderAlertInputs; private renderCheckbox; private renderRadio; private renderInput; hostData(): { role: string; style: { zIndex: number; }; class: { 'alert-translucent': boolean; }; }; private renderAlertButtons; render(): JSX.Element[]; }