export interface SidecarErrorContext {
    level?: "debug" | "info" | "warning" | "error" | "fatal";
    culprit?: string;
    tags?: Record<string, string>;
    context?: Record<string, unknown>;
}
export declare function shouldCaptureUsagePollingError(error: unknown): boolean;
export declare function shouldCaptureToolFailure(toolName: string, result: string): boolean;
export declare function captureSidecarError(error: unknown, culprit: string, tags?: Record<string, string>, context?: Record<string, unknown>): void;
export declare function flushSidecarErrors(): Promise<void>;
export declare function wrapSidecarHandler<A extends unknown[], R>(fn: (...args: A) => R, culprit: string): (...args: A) => R;
//# sourceMappingURL=sidecar-error-reporter.d.ts.map