import type { Context, ClocksState, BufferedData } from '@openobserve/browser-core'; import { Observable } from '@openobserve/browser-core'; import type { RumConfiguration } from '../configuration'; import type { LifeCycle } from '../lifeCycle'; export interface ProvidedError { startClocks: ClocksState; error: unknown; context?: Context; handlingStack: string; componentStack?: string; } export declare function startErrorCollection(lifeCycle: LifeCycle, configuration: RumConfiguration, bufferedDataObservable: Observable): { addError: ({ error, handlingStack, componentStack, startClocks, context }: ProvidedError) => void; }; export declare function doStartErrorCollection(lifeCycle: LifeCycle): { addError: ({ error, handlingStack, componentStack, startClocks, context }: ProvidedError) => void; };