/** * Harness-home resolution and the plugin's own data directories. * * The plugin derives its state/cache directories from the REAL DeepSeek * Harness home (`$DSH_HOME` > `~/.dsh`), mirroring the precedence the * harness itself documents in `packages/util/home-paths/src/index.ts` * (`resolveDshHome`). Nothing is ever derived from the checkout directory: * `DEVICE_SESSION_FILE` and `QUICK_TUNNEL_CACHE_DIR` are internal values. */ /** Directory name of the default harness home under the OS home. */ export declare const DSH_HOME_DIR_NAME = ".dsh"; /** * Resolve the harness home: `$DSH_HOME` (non-blank) else `~/.dsh`. A blank * override is treated as unset, exactly like the harness. */ export declare function resolveDshHome(env?: NodeJS.ProcessEnv): string; export interface PluginDirectories { /** Plugin root under the harness home (ACL-protected on Windows). */ readonly root: string; /** Sensitive runtime state (device sessions). */ readonly stateDir: string; /** cloudflared binary cache. */ readonly cacheDir: string; /** Absolute device-session state file. */ readonly deviceSessionFile: string; /** Absolute bound-GitHub-identity state file (identity only, never tokens). */ readonly githubAuthFile: string; /** Absolute updater state file (lastCheckedAt + lastSeenVersion only). */ readonly updateStateFile: string; /** Absolute download network/source settings file (R06C4, UI-persisted). */ readonly networkConfigFile: string; } /** * Derive the plugin's data directories under the harness home. State and * binary cache are kept apart (`state/` vs `bin/cache/`) per the R04 * requirement; the whole plugin root is the unit the Windows ACL protects. */ export declare function pluginDirectories(home: string): PluginDirectories;