import '../../stencil.core'; import { EventEmitter } from '../../stencil.core'; import { Animation, AnimationBuilder, Color, Config, Mode, OverlayEventDetail, OverlayInterface } from '../../interface'; export declare class Loading implements OverlayInterface { private durationTimeout; presented: boolean; animation?: Animation; color?: Color; mode: Mode; el: HTMLElement; animationCtrl: HTMLIonAnimationControllerElement; config: Config; overlayId: number; /** If true, the loading will blur any inputs and hide the keyboard */ keyboardClose: boolean; /** * Animation to use when the loading indicator is presented. */ enterAnimation?: AnimationBuilder; /** * Animation to use when the loading indicator is dismissed. */ leaveAnimation?: AnimationBuilder; /** * Optional text content to display in the loading indicator. */ content?: string; /** * Additional classes to apply for custom CSS. If multiple classes are * provided they should be separated by spaces. */ cssClass?: string | string[]; /** * Number of milliseconds to wait before dismissing the loading indicator. */ duration?: number; /** * If true, the loading indicator will be dismissed when the backdrop is clicked. Defaults to `false`. */ backdropDismiss: boolean; /** * If true, a backdrop will be displayed behind the loading indicator. Defaults to `true`. */ showBackdrop: boolean; /** * The name of the spinner to display. Possible values are: `"lines"`, `"lines-small"`, `"dots"`, * `"bubbles"`, `"circles"`, `"crescent"`. */ spinner?: string; /** * If true, the loading indicator will be translucent. Defaults to `false`. */ translucent: boolean; /** * If true, the loading indicator will animate. Defaults to `true`. */ willAnimate: boolean; /** * Emitted after the loading has unloaded. */ ionLoadingDidUnload: EventEmitter; /** * Emitted after the loading has loaded. */ ionLoadingDidLoad: EventEmitter; /** * Emitted after the loading has presented. */ didPresent: EventEmitter; /** * Emitted before the loading has presented. */ willPresent: EventEmitter; /** * Emitted before the loading has dismissed. */ willDismiss: EventEmitter; /** * Emitted after the loading has dismissed. */ didDismiss: EventEmitter; componentWillLoad(): void; componentDidLoad(): void; componentDidUnload(): void; protected onBackdropTap(): void; /** * Present the loading overlay after it has been created. */ present(): Promise; /** * Dismiss the loading overlay after it has been presented. */ dismiss(data?: any, role?: string): Promise; /** * Returns a promise that resolves when the loading 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 loading will dismiss. It also accepts a callback * that is called in the same circumstances. */ onWillDismiss(callback?: (detail: OverlayEventDetail) => void): Promise; hostData(): { style: { zIndex: number; }; class: { [x: string]: boolean; }; }; render(): JSX.Element[]; }