import '../../stencil.core'; import { EventEmitter } from '../../stencil.core'; import { ActionSheetButton, Animation, AnimationBuilder, Config, Mode, OverlayEventDetail, OverlayInterface } from '../../interface'; export declare class ActionSheet implements OverlayInterface { mode: Mode; presented: boolean; animation?: Animation; el: HTMLElement; animationCtrl: HTMLIonAnimationControllerElement; config: Config; /** * Unique ID to be used with the overlay. Internal only */ overlayId: number; /** * If the actionSheet should close the keyboard */ keyboardClose: boolean; /** * Animation to use when the action sheet is presented. */ enterAnimation?: AnimationBuilder; /** * Animation to use when the action sheet is dismissed. */ leaveAnimation?: AnimationBuilder; /** * An array of buttons for the action sheet. */ buttons: ActionSheetButton[]; /** * Additional classes to apply for custom CSS. If multiple classes are * provided they should be separated by spaces. */ cssClass?: string | string[]; /** * If true, the action sheet will be dismissed when the backdrop is clicked. Defaults to `true`. */ backdropDismiss: boolean; /** * Title for the action sheet. */ header?: string; /** * Subtitle for the action sheet. */ subHeader?: string; /** * If true, the action sheet will be translucent. Defaults to `false`. */ translucent: boolean; /** * If true, the action sheet will animate. Defaults to `true`. */ willAnimate: boolean; /** * Emitted after the alert has loaded. */ ionActionSheetDidLoad: EventEmitter; /** * Emitted after the alert has unloaded. */ ionActionSheetDidUnload: 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; componentDidLoad(): void; componentDidUnload(): void; protected onBackdropTap(): void; protected dispatchCancelHandler(ev: CustomEvent): void; /** * Present the action sheet overlay after it has been created. */ present(): Promise; /** * Dismiss the action sheet overlay after it has been presented. */ dismiss(data?: any, role?: string): Promise; /** * Returns a promise that resolves when the action-sheet did dismiss. It also accepts a callback * that is called in the same circustances. * */ onDidDismiss(callback?: (detail: OverlayEventDetail) => void): Promise; /** * Returns a promise that resolves when the action-sheet will dismiss. It also accepts a callback * that is called in the same circustances. * */ onWillDismiss(callback?: (detail: OverlayEventDetail) => void): Promise; private buttonClick; private callButtonHandler; hostData(): { style: { zIndex: number; }; class: { 'action-sheet-translucent': boolean; }; }; render(): JSX.Element[]; }