1 | import type { PluginImplementations } from './definitions';
|
2 | import type { PluginHeader } from './definitions-internal';
|
3 | export interface CapacitorPlatform {
|
4 | name: string;
|
5 | getPlatform?(): string;
|
6 | isPluginAvailable?(pluginName: string): boolean;
|
7 | getPluginHeader?(pluginName: string): PluginHeader | undefined;
|
8 | registerPlugin?(pluginName: string, jsImplementations: PluginImplementations): any;
|
9 | isNativePlatform?(): boolean;
|
10 | }
|
11 | export interface CapacitorPlatformsInstance {
|
12 | currentPlatform: CapacitorPlatform;
|
13 | platforms: Map<string, CapacitorPlatform>;
|
14 | addPlatform(name: string, platform: CapacitorPlatform): void;
|
15 | setPlatform(name: string): void;
|
16 | }
|
17 |
|
18 |
|
19 |
|
20 | export declare const CapacitorPlatforms: CapacitorPlatformsInstance;
|
21 |
|
22 |
|
23 |
|
24 | export declare const addPlatform: (name: string, platform: CapacitorPlatform) => void;
|
25 |
|
26 |
|
27 |
|
28 | export declare const setPlatform: (name: string) => void;
|