export interface ResolveContextDirInput { cliFlag?: string | undefined; configValue?: string | undefined; } /** * v0.0.14 universal default. Matches the directory `factory init` creates. * Replaces the v0.0.13 split where `factory-runtime` defaulted to `./.factory` * but `factory finish-task` and `factory-context` defaulted to `./context`. */ export declare const FACTORY_CONTEXT_DIR_DEFAULT = "./.factory"; /** * Pure resolver for the `--context-dir` precedence chain shared by every CLI * that reads the factory context store. Precedence: * CLI flag > factory.config.json runtime.contextDir > universal default. * * Returns the unresolved path string — callers `resolve(cwd, ...)` themselves * so the helper stays pure (deterministic on inputs, no `process.cwd()` reads). */ export declare function resolveContextDir(input: ResolveContextDirInput): string; /** * Read `runtime.contextDir` from `/factory.config.json` if present. * Returns undefined for missing/malformed/non-string values — config is * optional by design (mirrors the factory-runtime config-loader pattern). */ export declare function readContextDirFromConfig(cwd: string): string | undefined; //# sourceMappingURL=context-dir.d.ts.map