import type { AssistantContext } from '../core/types'; import { type PageSnapshotOptions } from './pageSnapshot'; export interface ApiErrorObservation { observedAt?: string; method?: string; url?: string; status?: number; code?: string; message?: string; } export interface BrowserDiagnosticsOptions extends PageSnapshotOptions { page?: () => AssistantContext['page']; captureRuntimeErrors?: boolean; captureResourceErrors?: boolean; } export interface BrowserDiagnostics { recordApiError(observation: ApiErrorObservation): void; context(): AssistantContext; dispose(): void; } export declare function createBrowserDiagnostics(options?: BrowserDiagnosticsOptions): BrowserDiagnostics; //# sourceMappingURL=browserDiagnostics.d.ts.map