import type { ClocksState, Context } from '@octopus-sdk/browser-core'; import type { CommonContext } from '../contexts/commonContext'; import type { PageStateHistory } from '../contexts/pageStateHistory'; import type { LifeCycle } from '../lifeCycle'; export interface ProvidedError { startClocks: ClocksState; error: unknown; context?: Context; handlingStack: string; } export declare function startErrorCollection(lifeCycle: LifeCycle, pageStateHistory: PageStateHistory): { addError: ({ error, handlingStack, startClocks, context: customerContext, }: ProvidedError, savedCommonContext?: CommonContext | undefined) => void; stop: () => void; }; export declare function doStartErrorCollection(lifeCycle: LifeCycle, pageStateHistory: PageStateHistory, stop: () => void): { addError: ({ error, handlingStack, startClocks, context: customerContext, }: ProvidedError, savedCommonContext?: CommonContext) => void; stop: () => void; };