export declare class HarnessError extends Error {
    readonly code: string;
    readonly recoverable: boolean;
    constructor(message: string, code: string, recoverable?: boolean);
}
export declare class OllamaConnectionError extends HarnessError {
    constructor(message: string);
}
export declare class ContextOverflowError extends HarnessError {
    constructor(tokenCount: number, limit: number);
}
export declare class ToolExecutionError extends HarnessError {
    constructor(toolName: string, message: string);
}
export declare class PermissionDeniedError extends HarnessError {
    constructor(toolName: string, reason: string);
}
export declare function withRetry<T>(fn: () => Promise<T>, maxAttempts?: number, baseDelayMs?: number): Promise<T>;
export declare function errorToToolResult(error: unknown): {
    success: false;
    output: string;
    error: string;
};
//# sourceMappingURL=errors.d.ts.map