import type { CmsEditConfig, SpaceConfig } from './types.js'; /** * Thrown when no config file can be found or a required environment variable is missing. * Caught in requireSession to skip space validation when the CLI is used outside a project. */ export declare class ConfigUnavailableError extends Error { constructor(message: string); } /** * Loads .contentful-cms.json from the given path or searches up from cwd. * Also loads .env.local from cwd (and home dir) for token resolution. * * Config resolution order: * 1. --config flag (explicit) * 2. CMS_EDIT_CONFIG env var (useful for MCP / Claude Desktop env block) * 3. Walk up from cwd * 4. Home directory fallback (~/.contentful-cms.json) */ export declare function loadConfig(configPath?: string): CmsEditConfig; /** * Resolves a specific space config given the config and an optional override key. */ export declare function resolveSpaceConfig(config: CmsEditConfig, spaceKey?: string): { key: string; space: SpaceConfig; }; //# sourceMappingURL=load.d.ts.map