/** * Gets the global .gsloth directory path in the user's home directory * @returns The resolved path to the global .gsloth directory */ export declare function getGlobalGslothDir(): string; /** * Ensures the global .gsloth directory exists in the user's home directory * Creates it if it doesn't exist * @returns The resolved path to the global .gsloth directory */ export declare function ensureGlobalGslothDir(): string; /** * Composes the path a global config file would occupy inside an ARBITRARY global dir: * `/`, or `/.gsloth-settings//` when a * profile is named. Split out of {@link getGlobalGslothConfigReadPath} so the dir and the * profile-segment rule are separable — a caller (or a test seam) that must substitute the global * dir gets the real composition rule instead of reimplementing it and drifting from it. * * A blank/whitespace-only profile name counts as "no profile". */ export declare function resolveGlobalConfigPath(globalDir: string, filename: string, identityProfileRaw?: string): string; /** * Gets the read path for a global gsloth config file (e.g. `.gsloth.config.json`) * inside the global `~/.gsloth` directory (or `~/.gsloth/.gsloth-settings//`). * Reuses the same global folder as MCP auth. * * This is a plain path resolver: it does NOT check for existence and does NOT create * the directory. Callers should guard with `existsSync` before reading. * * @param filename The configuration filename (e.g. `.gsloth.config.json`) * @param identityProfileRaw Optional identity profile subdirectory name within `.gsloth-settings` * @returns The resolved path where the global configuration file would live */ export declare function getGlobalGslothConfigReadPath(filename: string, identityProfileRaw?: string): string; /** * Gets the write path for a global gsloth config file (e.g. `.gsloth.config.json`) * inside the global `~/.gsloth` directory (or `~/.gsloth/.gsloth-settings//`), * ensuring the relevant directory exists. * * Intended for first-run setup flows (CFG-2) that need to persist global settings. * * @param filename The configuration filename (e.g. `.gsloth.config.json`) * @param identityProfileRaw Optional identity profile subdirectory name within `.gsloth-settings`. * A blank/whitespace-only value counts as "no profile". * @returns The resolved path where the global configuration file should be written */ export declare function getGlobalGslothConfigWritePath(filename: string, identityProfileRaw?: string): string; /** * Gets the global auth directory path * @returns The resolved path to the global auth directory */ export declare function getGlobalAuthDir(): string; /** * Ensures the global auth directory exists * Creates it if it doesn't exist * @returns The resolved path to the global auth directory */ export declare function ensureGlobalAuthDir(): string; /** * Gets the path for a specific OAuth provider's storage file * @param serverUrl The server URL or identifier for the OAuth provider * @returns The resolved path where the OAuth data should be stored */ export declare function getOAuthStoragePath(serverUrl: string): string;