UNPKG

@angular/fire

Version:
22 lines (21 loc) 1.46 kB
import { InjectionToken, NgZone } from '@angular/core'; import { ɵAngularFireSchedulers } from '@angular/fire'; import { AppCheckInstances } from '@angular/fire/app-check'; import { ɵPromiseProxy } from '@angular/fire/compat'; import { HttpsCallableOptions } from '@firebase/functions-types'; import { FirebaseOptions } from 'firebase/app'; import firebase from 'firebase/compat/app'; import { Observable } from 'rxjs'; import * as i0 from "@angular/core"; export declare const ORIGIN: InjectionToken<string>; export declare const REGION: InjectionToken<string>; export declare const USE_EMULATOR: InjectionToken<[host: string, port: number]>; export interface AngularFireFunctions extends OmitPromiseProxy<firebase.functions.Functions>, 'httpsCallable'> { } export declare class AngularFireFunctions { readonly httpsCallable: <T = any, R = any>(name: string, options?: HttpsCallableOptions) => (data: T) => Observable<R>; constructor(options: FirebaseOptions, name: string | null | undefined, zone: NgZone, schedulers: ɵAngularFireSchedulers, region: string | null, origin: string | null, _useEmulator: any, // can't use the tuple here _appCheckInstances: AppCheckInstances); static ɵfac: i0.ɵɵFactoryDeclaration<AngularFireFunctions, [null, { optional: true; }, null, null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>; static ɵprov: i0.ɵɵInjectableDeclaration<AngularFireFunctions>; }