/** * Resolve Botmux's durable data directory from one canonical precedence rule. * * The daemon writes `~/.botmux/.data-dir` on startup so bare-shell CLI * invocations can follow custom deployments. Every durable-state reader that * may run outside an injected session must use this helper; otherwise a * migration writer and an execution guard can silently consult different * stores. */ export interface ResolveBotmuxDataDirOptions { env?: NodeJS.ProcessEnv; /** Test seam; defaults to HOME/USERPROFILE from env, then os.homedir(). */ homeDir?: string; } /** * Priority: SESSION_DATA_DIR > daemon breadcrumb > ~/.botmux/data. * * A breadcrumb is accepted only when it is a small regular file containing * an absolute path to an existing directory. It deliberately does not require * a sessions*.json file: a fresh daemon owns its dataDir before the first * conversation, and migration state must already follow that ownership. */ export declare function resolveBotmuxDataDir(options?: ResolveBotmuxDataDirOptions): string; //# sourceMappingURL=data-dir.d.ts.map