import { Observable } from 'rxjs'; type FirebaseApp = import('firebase/app').FirebaseApp; /** * Lazy loads Firebase Performance monitoring and returns the instance as * an observable * @param app * @returns Observable */ export declare const getPerformance$: (app: FirebaseApp) => Observable; /** * Creates a function that creates an observable that begins a trace with a given id. The trace is ended * when the observable unsubscribes. The measurement is also logged as a performance * entry. * @param name * @returns (source$: Observable) => Observable */ export declare const trace: (name: string) => (source$: Observable) => Observable; /** * Creates a function that creates an observable that begins a trace with a given name. The trace runs until * a condition resolves to true and then the observable unsubscribes and ends the trace. * @param name * @param test * @param options * @returns (source$: Observable) => Observable */ export declare const traceUntil: (name: string, test: (a: T) => boolean, options?: { orComplete?: boolean; }) => (source$: Observable) => Observable; /** * Creates a function that creates an observable that begins a trace with a given name. The trace runs while * a condition resolves to true. Once the condition fails the observable unsubscribes * and ends the trace. * @param name * @param test * @param options * @returns (source$: Observable) => Observable */ export declare const traceWhile: (name: string, test: (a: T) => boolean, options?: { orComplete?: boolean; }) => (source$: Observable) => Observable; /** * Creates a function that creates an observable that begins a trace with a given name. The trace runs until the * observable fully completes. * @param name * @returns (source$: Observable) => Observable */ export declare const traceUntilComplete: (name: string) => (source$: Observable) => Observable; /** * Creates a function that creates an observable that begins a trace with a given name. * The trace runs until the first value emits from the provided observable. * @param name * @returns (source$: Observable) => Observable */ export declare const traceUntilFirst: (name: string) => (source$: Observable) => Observable; export {};