/** * ChatCode CLI home, TUI data paths, and environment compatibility. * * TUI-only preferences live below `/tui`; * the shared CLI/Web model choice lives at `/model.json`. The legacy * `~/.dsh-tui` and `~/.dsh-cc` roots remain read-only migration inputs; the * main `chatcode-cli migrate` workflow owns planning and copy-only apply. */ export declare const CHATCODE_CLI_HOME_ENV = "CHATCODE_CLI_HOME"; export declare const LEGACY_DSH_HOME_ENV = "DSH_HOME"; export declare const CHATCODE_CLI_TUI_ENV_PREFIX = "CHATCODE_CLI_TUI_"; export declare const LEGACY_DSH_TUI_ENV_PREFIX = "DSH_TUI_"; export declare const TUI_ENV_SUFFIXES: readonly ["BUN_COMMAND", "COMPACT_RATIO", "COMPACT_RETAIN", "DEBUG", "DEBUG_MOUSE", "DEV_ROOT", "DEV_WORKSPACE", "DISABLE_MOUSE", "GEOMETRY_TRACE", "HERDR_E2E", "LANG", "LAUNCHER_VERSION", "NO_185_PROCESS_GUARD", "NO_DELEGATE", "PERSONA", "PRESET", "RECOVERY_CHILD_MARKER", "RENDER_LOG", "RESTART_CHILD", "RESUME_SESSION", "SESSION_ROOT", "STANDALONE", "STANDALONE_BINARY", "STANDALONE_CACHE", "THEME", "UPDATED_FROM", "WORKSPACE", "WORKSPACE_TARGET"]; export type TuiEnvSuffix = typeof TUI_ENV_SUFFIXES[number]; /** * The user's home directory. `os.homedir()` first; the USERPROFILE/HOME * spellings are the last-resort fallback for stripped-down environments. * @returns Absolute home path. */ export declare function homeDir(): string; /** Resolve the single ChatCode CLI home: canonical env, legacy env, default. */ export declare function resolveChatCodeCliHome(env?: NodeJS.ProcessEnv): string; /** Data directory for TUI-only preferences and durable metadata. */ export declare const DATA_DIR: string; /** Previous TUI data directory, accepted only as migration/read input. */ export declare const LEGACY_DATA_DIR: string; /** Older pre-dsh-tui data directory, accepted only as migration/read input. */ export declare const PRE_DSH_TUI_DATA_DIR: string; /** * Copy a legacy data directory to an explicitly chosen target. * * Runtime startup does not call this helper: user migration is planned and * applied by `chatcode-cli migrate`. It remains injectable for the standalone * migration regression and never overwrites an existing target. * @param legacy - Legacy directory (injectable for tests). * @param target - New directory (injectable for tests). * @returns True when a migration copy happened. */ export declare function migrateLegacyDataDir(legacy?: string, target?: string): boolean; export declare function tuiEnvName(suffix: TuiEnvSuffix): `CHATCODE_CLI_TUI_${TuiEnvSuffix}`; export declare function legacyTuiEnvName(suffix: TuiEnvSuffix): `DSH_TUI_${TuiEnvSuffix}`; /** Read a TUI environment value with canonical-name precedence. */ export declare function readTuiEnv(suffix: TuiEnvSuffix, env?: NodeJS.ProcessEnv): string | undefined; /** Write only the canonical TUI environment name. */ export declare function writeTuiEnv(suffix: TuiEnvSuffix, value: string, env?: NodeJS.ProcessEnv): void; /** * Deprecated environment inputs and their canonical ChatCode CLI names. */ export declare const RENAMED_ENV: Readonly>; /** * Deprecated env-var names still set in the environment. They remain valid * compatibility inputs, but callers can emit one pre-render deprecation line. * @param env - Environment to scan (defaults to process.env; injectable). * @returns The legacy names found, in RENAMED_ENV order. */ export declare function detectLegacyEnv(env?: NodeJS.ProcessEnv): string[]; //# sourceMappingURL=paths.d.ts.map