import { type OptimizeTargetSet } from "./targets.js"; /** Per-candidate cache-partition token. `EvalCache` keys runs by * `(key, inputId)`; under the new model nothing on-disk lives at the workspace * itself — per-iteration artifacts live under `runs//agent-runs//`, * created by `evalRunLoadedInputs` rather than here. */ export type Workspace = { key: string; }; /** Owns the per-candidate cache-identity counter. No filesystem ownership. */ export declare class WorkspaceManager { private counter; /** Mint a fresh cache-partition token. */ fork(): Workspace; /** * Write a champion file set back to the original sources, sha-checked: every * discovered file must still match its discovery-time hash, or the whole * writeback aborts. Only changed files are written. (Never took a Workspace.) */ writeBack(source: OptimizeTargetSet, championFiles: Record): void; }