1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | import { FirebaseApp, FirebaseNamespace } from '@firebase/app-types';
|
18 | import * as types from '@firebase/database-types';
|
19 | import { Database } from './src/api/Database';
|
20 | import * as INTERNAL from './src/api/internal';
|
21 | import { DataSnapshot, Query, Reference } from './src/api/Reference';
|
22 | import * as TEST_ACCESS from './src/api/test_access';
|
23 | import { enableLogging } from './src/exp/Database';
|
24 | declare const ServerValue: {
|
25 | TIMESTAMP: object;
|
26 | increment: (delta: number) => object;
|
27 | };
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 | export declare function initStandalone(app: FirebaseApp, url: string, version: string, nodeAdmin?: boolean): {
|
38 | instance: types.Database;
|
39 | namespace: {
|
40 | Reference: typeof Reference;
|
41 | Query: typeof Query;
|
42 | Database: typeof Database;
|
43 | DataSnapshot: typeof DataSnapshot;
|
44 | enableLogging: typeof enableLogging;
|
45 | INTERNAL: typeof INTERNAL;
|
46 | ServerValue: {
|
47 | TIMESTAMP: object;
|
48 | increment: (delta: number) => object;
|
49 | };
|
50 | TEST_ACCESS: typeof TEST_ACCESS;
|
51 | };
|
52 | };
|
53 | export declare function registerDatabase(instance: FirebaseNamespace): void;
|
54 | export { Database, Query, Reference, enableLogging, ServerValue };
|
55 | export { OnDisconnect } from './src/api/onDisconnect';
|
56 | declare module '@firebase/app-types' {
|
57 | interface FirebaseNamespace {
|
58 | database?: {
|
59 | (app?: FirebaseApp): types.FirebaseDatabase;
|
60 | enableLogging: typeof types.enableLogging;
|
61 | ServerValue: types.ServerValue;
|
62 | Database: typeof types.FirebaseDatabase;
|
63 | };
|
64 | }
|
65 | interface FirebaseApp {
|
66 | database?(): types.FirebaseDatabase;
|
67 | }
|
68 | }
|
69 | export { DataSnapshot } from './src/api/Reference';
|