import '../../stencil.core'; import { EventEmitter } from '../../stencil.core'; import { Animation, AnimationBuilder, Color, ComponentProps, ComponentRef, Config, FrameworkDelegate, Mode, OverlayEventDetail, OverlayInterface } from '../../interface'; export declare class Popover implements OverlayInterface { private usersElement?; presented: boolean; animation?: Animation; el: HTMLElement; animationCtrl: HTMLIonAnimationControllerElement; config: Config; delegate?: FrameworkDelegate; overlayId: number; keyboardClose: boolean; /** * The color to use from your application's color palette. * Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. * For more information on colors, see [theming](/docs/theming/basics). */ color?: Color; /** * The mode determines which platform styles to use. * Possible values are: `"ios"` or `"md"`. */ mode: Mode; /** * Animation to use when the popover is presented. */ enterAnimation?: AnimationBuilder; /** * Animation to use when the popover is dismissed. */ leaveAnimation?: AnimationBuilder; /** * The component to display inside of the popover. */ component: ComponentRef; /** * The data to pass to the popover component. */ componentProps?: ComponentProps; /** * Additional classes to apply for custom CSS. If multiple classes are * provided they should be separated by spaces. */ cssClass?: string | string[]; /** * If true, the popover will be dismissed when the backdrop is clicked. Defaults to `true`. */ backdropDismiss: boolean; /** * The event to pass to the popover animation. */ event: any; /** * If true, a backdrop will be displayed behind the popover. Defaults to `true`. */ showBackdrop: boolean; /** * If true, the popover will be translucent. Defaults to `false`. */ translucent: boolean; /** * If true, the popover will animate. Defaults to `true`. */ willAnimate: boolean; /** * Emitted after the popover has loaded. */ ionPopoverDidLoad: EventEmitter; /** * Emitted after the popover has unloaded. */ ionPopoverDidUnload: EventEmitter; /** * Emitted after the popover has presented. */ didPresent: EventEmitter; /** * Emitted before the popover has presented. */ willPresent: EventEmitter; /** * Emitted before the popover has dismissed. */ willDismiss: EventEmitter; /** * Emitted after the popover has dismissed. */ didDismiss: EventEmitter; componentDidLoad(): void; componentDidUnload(): void; protected onDismiss(ev: UIEvent): void; protected onBackdropTap(): void; protected lifecycle(modalEvent: CustomEvent): void; /** * Present the popover overlay after it has been created. */ present(): Promise; /** * Dismiss the popover overlay after it has been presented. */ dismiss(data?: any, role?: string): Promise; /** * Returns a promise that resolves when the popover 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 popover will dismiss. It also accepts a callback * that is called in the same circustances. * */ onWillDismiss(callback?: (detail: OverlayEventDetail) => void): Promise; hostData(): { style: { zIndex: number; }; 'no-router': boolean; class: { [x: string]: boolean; }; }; render(): JSX.Element[]; } export declare const POPOVER_POSITION_PROPERTIES: any;