import type { JsonObject } from "../autonomy/contracts.ts"; import { type AcceptanceCriterion, type AgentBindingContract, type ApprovalRequestContract, type ApprovalResolutionContract, type AttemptCheckpoint, type AttemptLease, type AttemptRetryState, type EvidenceContract, type ExecutionGrant, type ObjectiveContract, type OrchestrationDispatchRequest, type RiskBudget, type TaskContract, type WorkerResultContract } from "./contracts.ts"; import { type ObjectiveRuntimeState, type TaskRuntimeProjection } from "./task-runtime-state.ts"; export declare const MAX_DATE_EPOCH_MS = 8640000000000000; export declare function projectionFromSnapshot(projection: JsonObject, throughOrdinal: number): TaskRuntimeProjection; export declare function string(value: unknown, label: string): string; export declare function number(value: unknown, label: string): number; export declare function assertRiskBudget(budget: RiskBudget | undefined, label: string): void; export declare function dispatchIdentifier(value: unknown, label: string): string; export declare function checkpointSummary(value: unknown, label: string): string; export declare function dispatchIdentifierArray(value: unknown, label: string): string[]; /** Validate dependency identity and ownership before any durable task event is appended. */ export declare function validateTaskDependencyIds(tasks: TaskRuntimeProjection["tasks"], objectiveId: string, value: readonly string[] | undefined): string[]; export declare function dispatchFromValue(value: unknown, label: string): OrchestrationDispatchRequest; export declare function objectiveFromPayload(payload: JsonObject): ObjectiveContract; export declare function evidenceFromPayload(payload: JsonObject): EvidenceContract; export declare function assertAcceptanceCriteria(criteria: readonly AcceptanceCriterion[]): void; export declare function assertReferencedAcceptanceCriteriaRetained(tasks: TaskRuntimeProjection["tasks"], current: ObjectiveRuntimeState, acceptanceCriteria: readonly AcceptanceCriterion[]): void; export declare function taskFromValue(value: unknown, label: string): TaskContract; export declare function taskFromPayload(payload: JsonObject): TaskContract; export declare function executionGrantFromValue(value: unknown, label: string): ExecutionGrant; export declare function leaseFromPayload(payload: JsonObject): AttemptLease; export declare function retryStateFromValue(value: unknown, label: string): AttemptRetryState; export declare function checkpointFromPayload(payload: JsonObject): AttemptCheckpoint; export declare function usageFromPayload(value: unknown, label: string): AttemptCheckpoint["usage"]; export declare function resultFromPayload(payload: JsonObject): WorkerResultContract; export declare function agentFromPayload(payload: JsonObject): AgentBindingContract; export declare function approvalFromPayload(payload: JsonObject): ApprovalRequestContract; export declare function approvalResolutionFromPayload(payload: JsonObject): ApprovalResolutionContract; export declare function validateTaskContractForState(state: TaskRuntimeProjection, task: TaskContract, label: string): void; //# sourceMappingURL=task-runtime-codecs.d.ts.map