-
-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy pathindex.d.ts
91 lines (56 loc) · 1.57 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
export interface IFirebaseOptions {
apiKey?: string;
gcmSenderId?: string;
androidClientId?: string;
appGroupId?: string;
bundleId?: string;
clientId?: string;
databaseURL?: string;
deepLinkURLScheme?: string;
googleAppId?: string;
projectId?: string;
storageBucket?: string;
trackingId?: string;
}
export interface FirebaseConfig {
automaticDataCollectionEnabled?: boolean;
automaticResourceManagement?: boolean;
name?: string;
}
declare function serialize(data: any, wrapPrimitives?: boolean): any;
declare function deserialize(data: any): any;
declare class FirebaseOptions implements IFirebaseOptions {
readonly ios: any;
readonly android: any;
readonly native: any;
apiKey?: string;
gcmSenderId?: string;
androidClientId?: string;
appGroupId?: string;
bundleId?: string;
clientId?: string;
databaseURL?: string;
deepLinkURLScheme?: string;
googleAppId?: string;
projectId?: string;
storageBucket?: string;
trackingId?: string;
}
declare class FirebaseApp {
readonly native;
readonly ios;
readonly name;
readonly options: Readonly<FirebaseOptions>;
delete(): Promise<void>;
apps(): FirebaseApp[];
}
export interface Firebase {
app(name?: string): FirebaseApp;
initializeApp(options?: FirebaseOptions, configOrName?: FirebaseConfig | string): Promise<FirebaseApp>;
initializeAppWithPath(path: string, options?: FirebaseOptions, config?: FirebaseConfig): Promise<FirebaseApp>;
}
export function firebase(): Firebase;
declare class FirebaseError extends Error {
static fromNative(native: any, message?: string);
readonly native;
}