/** * A small, fixed-size rolling log of "what the user did just before a crash". * * The tracker pushes a breadcrumb whenever it detects a click, navigation, * console error, or network error. When an error is captured we attach a * snapshot of the buffer so each report carries its lead-up context. * * Pure and dependency-free; covered by __tests__/breadcrumbs.test.ts. */ export type BreadcrumbType = 'click' | 'navigation' | 'console' | 'network'; export interface Breadcrumb { type: BreadcrumbType; message: string; timestampMs: number; data?: Record; } export declare class BreadcrumbBuffer { private readonly max; private items; constructor(max?: number); /** Append a breadcrumb, evicting the oldest once the buffer is full. */ add(crumb: Breadcrumb): void; /** Return a shallow copy so callers can't mutate the live buffer. */ snapshot(): Breadcrumb[]; clear(): void; get size(): number; } //# sourceMappingURL=breadcrumbs.d.ts.map