/** * Single source for the MACHINE-GLOBAL state dir (`~/.audit-code` / * `~/.remediate-code`): the home-dir tree holding reusable tool state. * * Every reader/writer of that state MUST resolve its path through this module — * never `join(homedir(), ".audit-code")` inline — so the {@link STATE_DIR_ENV_VAR} * override is honored everywhere at once. The override exists for hermeticity: * test/smoke harnesses point it at a per-run temp dir so no test or smoke outcome * can depend on the box's live state. */ export declare const STATE_DIR_ENV_VAR = "AUDIT_CODE_STATE_DIR"; /** * Resolve a machine-global state dir. * * Precedence: explicit `homeDir` (per-call test injection — the narrowest scope) * → `AUDIT_CODE_STATE_DIR` env override (used VERBATIM as the state dir, no * `defaultDirName` suffix, so a harness redirects every tool's state with one * var; audit and remediate deliberately collapse into the same dir under it) → * `join(os.homedir(), defaultDirName)`. */ export declare function resolveStateDir(defaultDirName: string, homeDir?: string, env?: NodeJS.ProcessEnv): string; /** {@link resolveStateDir} for the established `~/.audit-code` state directory. */ export declare function resolveAuditCodeStateDir(homeDir?: string, env?: NodeJS.ProcessEnv): string; //# sourceMappingURL=stateDir.d.ts.map