/** * MCP config loader functions. * * Reads padua.config.json (mcp key) and mcp-providers.json, * validates with Zod schemas from types.ts, and returns typed defaults. */ import { McpLocalConfig, McpProvidersConfig } from './types.js'; /** * Returns a fresh McpLocalConfig object containing all default values. * All fields are populated so callers can rely on the result being complete. */ export declare function getDefaultMcpConfig(): McpLocalConfig; /** * Reads the `mcp` key from `~/.padua/padua.config.json` (or `configPath`) and * returns a validated McpLocalConfig merged over the defaults. * * Returns defaults when: * - The file does not exist. * - The file exists but has no `mcp` key. * * Throws ValidationError (code INVALID_CONFIG) when: * - The `mcp` key is present but fails Zod validation. * - The file contains invalid JSON. */ export declare function loadMcpConfig(configPath?: string): McpLocalConfig; /** * Reads `~/.padua/mcp-providers.json` (or `configPath`) and returns a validated * McpProvidersConfig. * * Returns null when the file does not exist (not an error condition — the user * simply has not downloaded the provider config yet). * * Throws ValidationError (code INVALID_CONFIG) when: * - The file exists but fails Zod validation. * - The file contains invalid JSON. */ export declare function loadProvidersConfig(configPath?: string): McpProvidersConfig | null; /** * Downloads the provider config from S3 using the active SSO profile and writes * it to `~/.padua/mcp-providers.json` with permissions 0o600. * * Throws an Error when the aws CLI exits with a non-zero status code. */ export declare function downloadProvidersConfig(profile: string): Promise; //# sourceMappingURL=loaders.d.ts.map