1 | import { CordovaOptions } from './interfaces';
|
2 | export declare const ERR_CORDOVA_NOT_AVAILABLE: {
|
3 | error: string;
|
4 | };
|
5 | export declare const ERR_PLUGIN_NOT_INSTALLED: {
|
6 | error: string;
|
7 | };
|
8 | export declare function getPromise<T>(callback: (resolve: Function, reject?: Function) => any): Promise<T>;
|
9 | export declare function wrapPromise(pluginObj: any, methodName: string, args: any[], opts?: CordovaOptions): Promise<unknown>;
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 | export declare function checkAvailability(pluginRef: string, methodName?: string, pluginName?: string): boolean | {
|
16 | error: string;
|
17 | };
|
18 | export declare function checkAvailability(pluginObj: any, methodName?: string, pluginName?: string): boolean | {
|
19 | error: string;
|
20 | };
|
21 |
|
22 |
|
23 |
|
24 |
|
25 | export declare function instanceAvailability(pluginObj: any, methodName?: string): boolean;
|
26 | export declare function setIndex(args: any[], opts?: any, resolve?: Function, reject?: Function): any;
|
27 | export declare function callCordovaPlugin(pluginObj: any, methodName: string, args: any[], opts?: any, resolve?: Function, reject?: Function): any;
|
28 | export declare function callInstance(pluginObj: any, methodName: string, args: any[], opts?: any, resolve?: Function, reject?: Function): any;
|
29 | export declare function getPlugin(pluginRef: string): any;
|
30 | export declare function get(element: Element | Window, path: string): any;
|
31 | export declare function pluginWarn(pluginName: string, plugin?: string, method?: string): void;
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 | export declare function cordovaWarn(pluginName: string, method?: string): void;
|
38 | export declare type WrapFn = (...args: any[]) => any;
|
39 |
|
40 |
|
41 |
|
42 | export declare const wrap: (pluginObj: any, methodName: string, opts?: CordovaOptions) => WrapFn;
|
43 |
|
44 |
|
45 |
|
46 | export declare function wrapInstance(pluginObj: any, methodName: string, opts?: any): Function;
|