export interface ErrorCaptureOptions { debounceMs?: number; } export interface ToolResultLike { toolName: string; content?: Array<{ type: string; text?: string; }>; details?: Record; isError?: boolean; } export declare class ErrorCapture { private readonly debounceMs; private readonly recent; constructor(options?: ErrorCaptureOptions); detect(event: ToolResultLike): boolean; extractSummary(event: ToolResultLike, maxLength?: number): string; shouldCapture(event: ToolResultLike): boolean; private joinText; } //# sourceMappingURL=error-capture.d.ts.map