UNPKG

reactfire

Version:
36 lines (35 loc) 2.35 kB
import firebase from 'firebase/app'; declare type App = firebase.app.App; export declare const useAuth: typeof firebase.auth; export declare const useAnalytics: typeof firebase.analytics; export declare const useDatabase: typeof firebase.database; export declare const useFirestore: typeof firebase.firestore; export declare const useFunctions: typeof firebase.functions; export declare const useMessaging: typeof firebase.messaging; export declare const usePerformance: typeof firebase.performance; export declare const useRemoteConfig: typeof firebase.remoteConfig; export declare const useStorage: typeof firebase.storage; export declare const auth: typeof firebase.auth; export declare const analytics: typeof firebase.analytics; export declare const database: typeof firebase.database; export declare const firestore: typeof firebase.firestore; export declare const functions: typeof firebase.functions; export declare const messaging: typeof firebase.messaging; export declare const performance: typeof firebase.performance; export declare const remoteConfig: typeof firebase.remoteConfig; export declare const storage: typeof firebase.storage; export declare type PreloadOptions<T> = { firebaseApp: App; setup?: (instanceFactory: T) => void | Promise<any>; suspense?: boolean; }; export declare const preloadAuth: (options: PreloadOptions<App['auth']>) => Promise<App['auth']>; export declare const preloadAnalytics: (options: PreloadOptions<App['analytics']>) => Promise<App['analytics']>; export declare const preloadDatabase: (options: PreloadOptions<App['database']>) => Promise<App['database']>; export declare const preloadFirestore: (options: PreloadOptions<App['firestore']>) => Promise<App['firestore']>; export declare const preloadFunctions: (options: PreloadOptions<App['functions']>) => Promise<App['functions']>; export declare const preloadMessaging: (options: PreloadOptions<App['messaging']>) => Promise<App['messaging']>; export declare const preloadPerformance: (options: PreloadOptions<App['performance']>) => Promise<App['performance']>; export declare const preloadRemoteConfig: (options: PreloadOptions<App['remoteConfig']>) => Promise<App['remoteConfig']>; export declare const preloadStorage: (options: PreloadOptions<App['storage']>) => Promise<App['storage']>; export {};