import type { RunRecorder, RunCancellationReason, RunSummary, RuntimeResultLike } from "@mono-agent/observability"; import type { RuntimeResult } from "@mono-agent/runtime-adapter"; import type { BuiltAgentContext } from "../context/index.js"; import type { AgentHarnessFailure, AgentHarnessRequest, AgentHarnessResponse } from "../types.js"; export declare function shouldRetrySessionResumeError(error: unknown): boolean; export declare function shouldRetryWithoutSession(result: RuntimeResult | undefined, aborted: boolean): boolean; export declare function failureFromRuntimeResult(result: RuntimeResult): AgentHarnessFailure | undefined; export declare function failureFromThrownError(error: unknown, wasAborted: boolean): AgentHarnessFailure; export declare function cancellationFailureKind(signal: AbortSignal): "cancelled" | "cancelled_user"; export declare function safeRecorderCancel(recorder: RunRecorder, failureKind: "cancelled" | "cancelled_user", cancellationReason?: RunCancellationReason, systemPrompt?: string): Promise; export declare function safeRecorderFail(recorder: RunRecorder, error: unknown, systemPrompt?: string): Promise; export declare function commitRecorderFinish(recorder: RunRecorder, result: RuntimeResultLike): Promise; export declare function safeRecorderCommitFinish(recorder: RunRecorder, result: RuntimeResultLike): Promise; export declare function normalizeAssistantText(text: unknown): string | undefined; export declare function responseMetadata(runId: string, request: AgentHarnessRequest, context: BuiltAgentContext | undefined, summary: RunSummary | undefined, runtimeResult?: RuntimeResult): AgentHarnessResponse["metadata"]; export declare function failureResponse(input: { readonly runId: string; readonly request: AgentHarnessRequest; readonly summary: RunSummary; readonly kind: string; readonly message: string; }): AgentHarnessResponse; //# sourceMappingURL=run-results.d.ts.map