/** * CLI-001: Config management * * Stores user config in ~/.agentlaunch/config.json * Fields: apiKey, baseUrl */ export interface CliConfig { apiKey?: string; baseUrl?: string; } /** Resolve the frontend URL from env or defaults. */ export declare function resolveFrontendUrl(): string; /** Get the current environment name. */ export declare function getEnvironment(): string; /** Default API base URL. Override with `agentlaunch config set-url`. */ export declare const DEFAULT_BASE_URL: string; /** * Read the config file. Returns an empty object if the file does not exist * or cannot be parsed. */ export declare function readConfig(): CliConfig; /** * Write a partial config update. Merges with existing values. */ export declare function writeConfig(partial: Partial): void; /** * Return the active base URL (config override or default). */ export declare function getBaseUrl(): string; /** * Return the active API key. Checks in order: * 1. ~/.agentlaunch/config.json (set via `agentlaunch config set-key`) * 2. AGENTVERSE_API_KEY environment variable * 3. .env file in current directory * * Throws a descriptive error if not found in any location. */ export declare function requireApiKey(): string; /** * Mask an API key for display: show first 8 chars, then asterisks. * Example: "eyJhbGci..." -> "eyJhbGci..."[masked] */ export declare function maskKey(key: string): string; /** * Build MCP config JSON with the actual API key baked in. * Claude Code reads this from .mcp.json and .claude/settings.json. */ export declare function buildMcpConfig(apiKey: string): string; /** * Try to resolve an API key without throwing. * Returns the key or undefined if not available. */ export declare function tryGetApiKey(): string | undefined; //# sourceMappingURL=config.d.ts.map