import { type FirebaseApp } from '@react-native-firebase/app'; import type { Functions, HttpsCallableOptions, HttpsCallable } from './types/functions'; /** * Returns a Functions instance for the given app. * @param app - The FirebaseApp to use. Optional. * @param regionOrCustomDomain - One of: a) The region the callable functions are located in (ex: us-central1) b) A custom domain hosting the callable functions (ex: https://mydomain.com). Optional. * @returns Functions instance for the given app. */ export declare function getFunctions(app?: FirebaseApp, regionOrCustomDomain?: string): Functions; /** * Modify this instance to communicate with the Cloud Functions emulator. * Note: this must be called before this instance has been used to do any operations. * @param functionsInstance A functions instance. * @param host The emulator host. (ex: localhost) * @param port The emulator port. (ex: 5001) */ export declare function connectFunctionsEmulator(functionsInstance: Functions, host: string, port: number): void; /** * Returns a reference to the callable HTTPS trigger with the given name. * @param functionsInstance A functions instance. * @param name The name of the trigger. * @param options An interface for metadata about how calls should be executed. * @returns HttpsCallable instance */ export declare function httpsCallable(functionsInstance: Functions, name: string, options?: HttpsCallableOptions): HttpsCallable; /** * Returns a reference to the callable HTTPS trigger with the specified url. * @param functionsInstance A functions instance. * @param url The url of the trigger. * @param options An instance of HttpsCallableOptions containing metadata about how calls should be executed. * @returns HttpsCallable instance */ export declare function httpsCallableFromUrl(functionsInstance: Functions, url: string, options?: HttpsCallableOptions): HttpsCallable; //# sourceMappingURL=modular.d.ts.map