/** * Canonical AIFight home root. Default `~/.aifight`, overridable via * `AIFIGHT_HOME`. Both the CLI and the desktop app resolve EVERY config * path from here, so they always share one config folder. Tests set * `AIFIGHT_HOME` to a temp dir to isolate from real user data. */ export declare function getAifightHome(): string; export declare function getRuntimeHome(): string; /** Root of all agent profiles: `/agents`. */ export declare function getAgentsRoot(): string; /** * Sanitize one untrusted value (agent slug, agent id, session id, …) into a * filesystem-safe path SEGMENT: replace every character outside * [A-Za-z0-9._-] with "_", cap at 128 chars, and never return an empty string * (fall back to "unknown"). This neutralizes "/", "\\", ":" and absolute-path * prefixes, so a caller that joins the result under a known root cannot be * walked out of that root by a single segment. A pure-dots value like ".." * survives (dots are allowed), so callers that build a full path MUST still * assert containment against their root as defense-in-depth — see * resolveAgentDir in profile/profile-loader.ts. */ export declare function safePathSegment(value: string): string; export declare function getDefaultDbPath(): string; export declare function ensureRuntimeHome(): void;