1 | import { ActionSheetOptions, AlertOptions, Animation, AnimationBuilder, HTMLIonOverlayElement, IonicConfig, LoadingOptions, ModalOptions, OverlayInterface, PickerOptions, PopoverOptions, ToastOptions } from '../interface';
|
2 | export declare const activeAnimations: WeakMap<OverlayInterface, Animation[]>;
|
3 | export declare const alertController: {
|
4 | create(options: AlertOptions): Promise<HTMLIonAlertElement>;
|
5 | dismiss(data?: any, role?: string | undefined, id?: string | undefined): Promise<boolean>;
|
6 | getTop(): Promise<HTMLIonAlertElement | undefined>;
|
7 | };
|
8 | export declare const actionSheetController: {
|
9 | create(options: ActionSheetOptions): Promise<HTMLIonActionSheetElement>;
|
10 | dismiss(data?: any, role?: string | undefined, id?: string | undefined): Promise<boolean>;
|
11 | getTop(): Promise<HTMLIonActionSheetElement | undefined>;
|
12 | };
|
13 | export declare const loadingController: {
|
14 | create(options: LoadingOptions): Promise<HTMLIonLoadingElement>;
|
15 | dismiss(data?: any, role?: string | undefined, id?: string | undefined): Promise<boolean>;
|
16 | getTop(): Promise<HTMLIonLoadingElement | undefined>;
|
17 | };
|
18 | export declare const modalController: {
|
19 | create(options: ModalOptions<import("../interface").ComponentRef>): Promise<HTMLIonModalElement>;
|
20 | dismiss(data?: any, role?: string | undefined, id?: string | undefined): Promise<boolean>;
|
21 | getTop(): Promise<HTMLIonModalElement | undefined>;
|
22 | };
|
23 | export declare const pickerController: {
|
24 | create(options: PickerOptions): Promise<HTMLIonPickerElement>;
|
25 | dismiss(data?: any, role?: string | undefined, id?: string | undefined): Promise<boolean>;
|
26 | getTop(): Promise<HTMLIonPickerElement | undefined>;
|
27 | };
|
28 | export declare const popoverController: {
|
29 | create(options: PopoverOptions<import("../interface").ComponentRef>): Promise<HTMLIonPopoverElement>;
|
30 | dismiss(data?: any, role?: string | undefined, id?: string | undefined): Promise<boolean>;
|
31 | getTop(): Promise<HTMLIonPopoverElement | undefined>;
|
32 | };
|
33 | export declare const toastController: {
|
34 | create(options: ToastOptions): Promise<HTMLIonToastElement>;
|
35 | dismiss(data?: any, role?: string | undefined, id?: string | undefined): Promise<boolean>;
|
36 | getTop(): Promise<HTMLIonToastElement | undefined>;
|
37 | };
|
38 | export declare const prepareOverlay: <T extends HTMLIonOverlayElement>(el: T) => void;
|
39 | export declare const createOverlay: <T extends HTMLIonOverlayElement>(tagName: string, opts: object | undefined) => Promise<T>;
|
40 | export declare const focusFirstDescendant: (ref: Element, overlay: HTMLIonOverlayElement) => void;
|
41 | export declare const dismissOverlay: (doc: Document, data: any, role: string | undefined, overlayTag: string, id?: string | undefined) => Promise<boolean>;
|
42 | export declare const getOverlays: (doc: Document, selector?: string | undefined) => HTMLIonOverlayElement[];
|
43 |
|
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 | export declare const getOverlay: (doc: Document, overlayTag?: string | undefined, id?: string | undefined) => HTMLIonOverlayElement | undefined;
|
51 |
|
52 |
|
53 |
|
54 |
|
55 |
|
56 |
|
57 |
|
58 |
|
59 |
|
60 |
|
61 |
|
62 |
|
63 |
|
64 |
|
65 |
|
66 |
|
67 |
|
68 |
|
69 |
|
70 |
|
71 |
|
72 |
|
73 | export declare const setRootAriaHidden: (hidden?: boolean) => void;
|
74 | export declare const present: (overlay: OverlayInterface, name: keyof IonicConfig, iosEnterAnimation: AnimationBuilder, mdEnterAnimation: AnimationBuilder, opts?: any) => Promise<void>;
|
75 | export declare const dismiss: (overlay: OverlayInterface, data: any | undefined, role: string | undefined, name: keyof IonicConfig, iosLeaveAnimation: AnimationBuilder, mdLeaveAnimation: AnimationBuilder, opts?: any) => Promise<boolean>;
|
76 | export declare const eventMethod: <T>(element: HTMLElement, eventName: string) => Promise<T>;
|
77 | export declare const onceEvent: (element: HTMLElement, eventName: string, callback: (ev: Event) => void) => void;
|
78 | export declare const isCancel: (role: string | undefined) => boolean;
|
79 |
|
80 |
|
81 |
|
82 |
|
83 |
|
84 |
|
85 |
|
86 | export declare const safeCall: (handler: any, arg?: any) => any;
|
87 | export declare const BACKDROP = "backdrop";
|