import type { FailureRecoverability, FailureScope } from "@best-agent/protocol";
export type AgentVisibleRuntimeErrorInput = {
    code: string;
    details?: readonly string[];
    message: string;
};
export declare function formatAgentVisibleRuntimeError(input: AgentVisibleRuntimeErrorInput): string;
export declare function shouldContinueChildThreadAfterFailure(input: {
    recoverability: FailureRecoverability;
    scope: FailureScope;
}): boolean;
export declare function buildChildThreadRecoveryPrompt(input: {
    message: string;
    recoverability: FailureRecoverability;
    scope: FailureScope;
}): string;
export declare function describeFailureScope(scope: FailureScope): string;
//# sourceMappingURL=agent-error.d.ts.map