import type { WorkerClaim } from "../autonomy/contracts.ts"; import { type ArtifactContract, type WorkerResultContract } from "./contracts.ts"; import type { StartedDelegationAttempt } from "./delegation-ledger.ts"; /** Matches the default text-read ceiling while keeping synchronous result capture bounded. */ export declare const MAX_WORKER_ARTIFACT_HASH_BYTES: number; /** A terminal result may report many files; bound their cumulative synchronous reads too. */ export declare const MAX_WORKER_ARTIFACT_HASH_TOTAL_BYTES: number; /** Inputs shared by every worker terminal path before the durable result is committed. */ export interface CreateWorkerResultContractInput { handle: StartedDelegationAttempt; claim: WorkerClaim; accepted: boolean; costUsd?: number; cwd: string; inputTokens?: number; outputTokens?: number; totalTokens?: number; wallClockMs: number; toolCalls: number; verificationRequired?: boolean; verificationCriterionIds?: readonly string[]; reasonCode?: string; createdAt?: string; outputArtifact?: ArtifactContract; } /** Sole host-owned conversion from an untrusted claim to a fenced durable result. */ export declare function createWorkerResultContract(args: CreateWorkerResultContractInput): WorkerResultContract; //# sourceMappingURL=worker-result-adapter.d.ts.map