1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | import * as firebase from 'firebase';
|
18 | export { database, firestore } from 'firebase';
|
19 | export declare function apps(): firebase.app.App[];
|
20 | export declare type AppOptions = {
|
21 | databaseName?: string;
|
22 | projectId?: string;
|
23 | auth?: object;
|
24 | };
|
25 |
|
26 | export declare function initializeTestApp(options: AppOptions): firebase.app.App;
|
27 | export declare type AdminAppOptions = {
|
28 | databaseName?: string;
|
29 | projectId?: string;
|
30 | };
|
31 |
|
32 | export declare function initializeAdminApp(options: AdminAppOptions): firebase.app.App;
|
33 | export declare type LoadDatabaseRulesOptions = {
|
34 | databaseName: string;
|
35 | rules: string;
|
36 | };
|
37 | export declare function loadDatabaseRules(options: LoadDatabaseRulesOptions): Promise<void>;
|
38 | export declare type LoadFirestoreRulesOptions = {
|
39 | projectId: string;
|
40 | rules: string;
|
41 | };
|
42 | export declare function loadFirestoreRules(options: LoadFirestoreRulesOptions): Promise<void>;
|
43 | export declare type ClearFirestoreDataOptions = {
|
44 | projectId: string;
|
45 | };
|
46 | export declare function clearFirestoreData(options: ClearFirestoreDataOptions): Promise<void>;
|
47 | export declare function assertFails(pr: Promise<any>): any;
|
48 | export declare function assertSucceeds(pr: Promise<any>): any;
|