import { type HttpsCallableResult } from '@react-native-firebase/app/dist/module/internal/web/firebaseFunctions'; import type { HttpsCallableOptions } from '../index'; import type { CustomHttpsCallableOptions } from '../types/internal'; interface WrapperData { data: unknown; } /** * This is a 'NativeModule' for the web platform. * Methods here are identical to the ones found in * the native android/ios modules e.g. `@ReactMethod` annotated * java methods on Android. */ declare const _default: { /** * Get and execute a Firebase Functions callable. * @param appName - The name of the app to get the functions instance for. * @param regionOrCustomDomain - The region or custom domain to use for the functions instance. * @param host - The host to use for the functions emulator. * @param port - The port to use for the functions emulator. * @param name - The name of the functions callable. * @param wrapper - The wrapper object to use for the functions callable. * @param options - The options to use for the functions callable. * @returns The result of the functions callable. */ httpsCallable(appName: string, regionOrCustomDomain: string | null, host: string | null, port: number, name: string, wrapper: WrapperData, options: HttpsCallableOptions): Promise>; /** * Get and execute a Firebase Functions callable from a URL. * @param appName - The name of the app to get the functions instance for. * @param regionOrCustomDomain - The region or custom domain to use for the functions instance. * @param host - The host to use for the functions emulator. * @param port - The port to use for the functions emulator. * @param url - The URL to use for the functions callable. * @param wrapper - The wrapper object to use for the functions callable. * @param options - The options to use for the functions callable. * @returns The result of the functions callable. */ httpsCallableFromUrl(appName: string, regionOrCustomDomain: string | null, host: string | null, port: number, url: string, wrapper: WrapperData, options: HttpsCallableOptions): Promise>; /** * Stream a Firebase Functions callable. * @param appName - The name of the app to get the functions instance for. * @param regionOrCustomDomain - The region or custom domain to use for the functions instance. * @param host - The host to use for the functions emulator. * @param port - The port to use for the functions emulator. * @param name - The name of the functions callable. * @param wrapper - The wrapper object to use for the functions callable. * @param options - The options to use for the functions callable. * @param listenerId - The listener ID for this stream. */ httpsCallableStream(appName: string, regionOrCustomDomain: string | null, host: string | null, port: number, name: string, wrapper: WrapperData, options: CustomHttpsCallableOptions, listenerId: number): Promise; /** * Stream a Firebase Functions callable from a URL. * @param appName - The name of the app to get the functions instance for. * @param regionOrCustomDomain - The region or custom domain to use for the functions instance. * @param host - The host to use for the functions emulator. * @param port - The port to use for the functions emulator. * @param url - The URL to use for the functions callable. * @param wrapper - The wrapper object to use for the functions callable. * @param options - The options to use for the functions callable. * @param listenerId - The listener ID for this stream. */ httpsCallableStreamFromUrl(appName: string, regionOrCustomDomain: string | null, host: string | null, port: number, url: string, wrapper: WrapperData, options: CustomHttpsCallableOptions, listenerId: number): Promise; /** * Removes a streaming listener and cancels the underlying stream. * @param appName - The app name for the stream. * @param region - The region for the stream. * @param listenerId - The listener ID to remove. */ removeFunctionsStreaming(appName: string, region: string, listenerId: number): void; }; export default _default; //# sourceMappingURL=RNFBFunctionsModule.d.ts.map