import type { WorkflowRun } from './workflow-run.js'; export declare const PORTABLE_RUN_CHECKPOINT_KEY = "run_checkpoint"; declare const SCHEMA = "comet.workflow-run-checkpoint.v1"; export declare function portableClaimToken(token: string): string; export interface PortableRunCheckpoint { schema: typeof SCHEMA; hash: string; run: WorkflowRun; /** 原本地 CAS revision,与稳定的 portable 进度 hash 分开保存。 */ sourceRevision?: number; /** 绑定 portable hash 与 sourceRevision,拒绝单独修改恢复版本。 */ sourceHash?: string; } /** 文件投影压缩历史引用;createPortableRunCheckpoint 的公共 Run 保持完整。 */ export declare function encodePortableRunCheckpoint(checkpoint: PortableRunCheckpoint): PortableRunCheckpoint | { schema: string; run: WorkflowRun; pool: import("../../platform/fs/json-value-pool.js").JsonValuePool; storageHash: string; hash: string; /** 原本地 CAS revision,与稳定的 portable 进度 hash 分开保存。 */ sourceRevision?: number; /** 绑定 portable hash 与 sourceRevision,拒绝单独修改恢复版本。 */ sourceHash?: string; }; export declare function portableRunCheckpointMatches(value: unknown, expected: PortableRunCheckpoint): boolean; /** 输入来自已验证的 Runtime 投影;返回值仅用于内部只读比较。 */ export declare function createPortableRunCheckpointProjection(run: WorkflowRun): PortableRunCheckpoint; /** A copied checkout must never inherit a live executor claim as executable work. */ export declare function createPortableRunCheckpoint(run: WorkflowRun): PortableRunCheckpoint; export declare function readPortableRunCheckpoint(value: unknown, runId: string, options?: { preserveSourceRevision?: boolean; }): WorkflowRun | null; /** 校验完整 checkpoint 正文及来源 revision,不展开历史映射。 */ export declare function readPortableRunCheckpointProjection(value: unknown, runId: string, options?: { preserveSourceRevision?: boolean; }): WorkflowRun | null; /** 比较文件 checkpoint 和权威 Run,先验证正文,不能只信任声明的摘要。 */ export declare function portableRunCheckpointProjectionMatches(value: unknown, run: WorkflowRun): boolean; /** 在定义升级前固定旧执行尝试的来源,升级不能重新绑定已发生的副作用。 */ export declare function preserveRuntimeExecutionOrigins(run: WorkflowRun): WorkflowRun; export declare function runtimeExecutionBinding(run: WorkflowRun, action: WorkflowRun['actions'][number]): { workflow: { id: string; version: string; hash: string; }; runId: string; actionId: string; attempt: number; inputHash: string; claimToken: string; }; export {}; //# sourceMappingURL=portable-run-checkpoint.d.ts.map