import type { FirebaseApp } from '@react-native-firebase/app'; import type { FirebasePerformance, HttpMetric, HttpMethod, PerformanceSettings, PerformanceTrace, ScreenTrace } from './types/perf'; /** * Returns a {@link FirebasePerformance} instance for the given app. * @param app - The FirebaseApp to use. Optional; defaults to the default app. */ export declare function getPerformance(app?: FirebaseApp): FirebasePerformance; /** * Returns a {@link FirebasePerformance} instance for the given app (aligned with the Firebase JS SDK). * Can only be called once per app during initialization in typical usage. * * @param app - The FirebaseApp to use. * @param settings - Optional {@link PerformanceSettings}. */ export declare function initializePerformance(app: FirebaseApp, settings?: PerformanceSettings): FirebasePerformance; /** * Returns a new {@link PerformanceTrace} instance. * @param performance - The {@link FirebasePerformance} instance to use. * @param name - The name of the trace. */ export declare function trace(performance: FirebasePerformance, name: string): PerformanceTrace; /** * Creates an {@link HttpMetric} for a URL and HTTP method (React Native). * @param performance - The {@link FirebasePerformance} instance to use. * @param url - Request URL. * @param httpMethod - HTTP method. */ export declare function httpMetric(performance: FirebasePerformance, url: string, httpMethod: HttpMethod): HttpMetric; /** * Creates a {@link ScreenTrace} with the given screen name. * Android only; throws if hardware acceleration is disabled or if Android is 9.0 or 9.1. * @param performance - The {@link FirebasePerformance} instance to use. * @param screenName - Screen name; no leading/trailing whitespace, no leading `_`, max length 100. */ export declare function newScreenTrace(performance: FirebasePerformance, screenName: string): ScreenTrace; /** * Creates a {@link ScreenTrace} and starts it immediately. * Android only; throws if hardware acceleration is disabled or if Android is 9.0 or 9.1. * @param performance - The {@link FirebasePerformance} instance to use. * @param screenName - Name of the screen. */ export declare function startScreenTrace(performance: FirebasePerformance, screenName: string): Promise; //# sourceMappingURL=modular.d.ts.map