import { resolveStoreRoot } from "../execution/store-root.js"; import type { HarnessDescriptor } from "../knowledge/descriptor.js"; export { resolveStoreRoot }; export interface ResumeStoreCheck { /** The store path hcn expects for this cwd and id, or null when the * descriptor cannot compute one. */ readonly path: string | null; readonly exists: boolean; } /** The environment the child will run with, for the pre-spawn store * check: per-call `--env` over the inherited environment, the * descriptor-derived turn env over that, with the spawn's delete-on-empty * rule. This is the same merge the spawn adapter applies * (`mergeEnvironment`), so the guard resolves the same store root the * child files the session under. */ export declare const effectiveGuardEnv: (inherited: Readonly>, callEnv: Readonly>, turnEnv?: Readonly>) => Record; /** Where a harness that creates sessions on an unknown id would * have filed this session. The cwd is resolved to its real path first: the * harness slugs the directory it actually ran in, and on macOS a temp * directory reached through /var is really under /private/var - slugging * the unresolved path refused valid resumes. */ export declare const resumeStore: (h: HarnessDescriptor, opts: { readonly cwd: string; readonly home: string; readonly sessionId: string; /** Environment to resolve rootEnv through; defaults to the process * environment. Injectable so tests pin precedence without mutating it. */ readonly env?: Readonly>; }) => ResumeStoreCheck; //# sourceMappingURL=resume-guard.d.ts.map