123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379 |
-
-
- import { Component } from '@firebase/component';
- import { ComponentContainer } from '@firebase/component';
- import { FirebaseError } from '@firebase/util';
- import { LogCallback } from '@firebase/logger';
- import { LogLevelString } from '@firebase/logger';
- import { LogOptions } from '@firebase/logger';
- import { Name } from '@firebase/component';
- import { Provider } from '@firebase/component';
-
-
- export declare function _addComponent<T extends Name>(app: FirebaseApp, component: Component<T>): void;
-
-
- export declare function _addOrOverwriteComponent(app: FirebaseApp, component: Component): void;
-
-
- export declare const _apps: Map<string, FirebaseApp>;
-
-
- export declare function _clearComponents(): void;
-
-
- export declare const _components: Map<string, Component<any>>;
-
-
- export declare const _DEFAULT_ENTRY_NAME = "[DEFAULT]";
-
-
- export declare function deleteApp(app: FirebaseApp): Promise<void>;
-
-
- export declare interface FirebaseApp {
-
-
- readonly name: string;
-
-
- readonly options: FirebaseOptions;
-
-
- automaticDataCollectionEnabled: boolean;
- }
-
-
- export declare interface _FirebaseAppInternal extends FirebaseApp {
- container: ComponentContainer;
- isDeleted: boolean;
- checkDestroyed(): void;
- }
-
-
- export declare interface FirebaseAppSettings {
-
-
- name?: string;
-
-
- automaticDataCollectionEnabled?: boolean;
- }
- export { FirebaseError }
-
-
- export declare interface FirebaseOptions {
-
-
- apiKey?: string;
-
-
- authDomain?: string;
-
-
- databaseURL?: string;
-
-
- projectId?: string;
-
-
- storageBucket?: string;
-
-
- messagingSenderId?: string;
-
-
- appId?: string;
-
-
- measurementId?: string;
- }
-
-
- export declare interface _FirebaseService {
- app: FirebaseApp;
-
-
- _delete(): Promise<void>;
- }
-
-
- export declare function getApp(name?: string): FirebaseApp;
-
-
- export declare function getApps(): FirebaseApp[];
-
-
- export declare function _getProvider<T extends Name>(app: FirebaseApp, name: T): Provider<T>;
-
-
- export declare function initializeApp(options: FirebaseOptions, name?: string): FirebaseApp;
-
-
- export declare function initializeApp(options: FirebaseOptions, config?: FirebaseAppSettings): FirebaseApp;
-
-
- export declare function initializeApp(): FirebaseApp;
-
-
- export declare function onLog(logCallback: LogCallback | null, options?: LogOptions): void;
-
-
- export declare function _registerComponent<T extends Name>(component: Component<T>): boolean;
-
-
- export declare function registerVersion(libraryKeyOrName: string, version: string, variant?: string): void;
-
-
- export declare function _removeServiceInstance<T extends Name>(app: FirebaseApp, name: T, instanceIdentifier?: string): void;
-
-
- export declare const SDK_VERSION: string;
-
-
- export declare function setLogLevel(logLevel: LogLevelString): void;
-
- export { }
|