/** * Per-platform default paths for the installer. * * Linux: XDG_DATA_HOME / ~/.local/share/cadre-host * macOS: ~/Library/Application Support/CadreHost * Windows: %LocalAppData%\CadreHost * * The package root (where the installed `dist/bin/host.js` and `service/` * directory live) is resolved at runtime relative to this module. The * installer needs both: the data dir is per-user state, while the package * root is what the service-host unit's `ExecStart` line points at. */ import type { SupportedPlatform } from './platform.js'; export interface InstallerEnv { HOME?: string; XDG_DATA_HOME?: string; XDG_CONFIG_HOME?: string; LocalAppData?: string; } /** Default data dir for the given platform. Honors XDG_DATA_HOME / LocalAppData. */ export declare function defaultDataDir(platform: SupportedPlatform, env?: InstallerEnv, home?: string): string; /** Path on disk for the installed cadre-host CLI entrypoint. */ export declare function defaultHostJs(): string; /** Directory containing service templates (cadre-host.service.tmpl etc.). */ export declare function defaultServiceDir(): string; /** Where the wizard writes the JSON config. */ export declare function configPath(dataDir: string): string; /** Logs directory (used by launchd / NSSM unit templates). */ export declare function logsDir(dataDir: string): string; /** Per-platform install dir for the rendered service unit file. */ export declare function serviceInstallPath(platform: SupportedPlatform, env?: InstallerEnv, home?: string): string;