/** * Photon Configuration * * Manages config.json for unified Photon configuration. * Contains both per-photon env vars and MCP server configs. * * Location follows ncp-paths pattern: * - Local: .ncp/config.json (if .ncp exists in project) * - Global: ~/.ncp/config.json (fallback) */ export interface MCPServerConfig { command?: string; args?: string[]; url?: string; transport?: 'stdio' | 'sse' | 'websocket'; env?: Record; } export interface PhotonConfig { /** Per-photon environment variable configuration */ photons: Record>; /** MCP server configurations */ mcpServers: Record; } /** * Get the config file path (local or global) */ export declare function getConfigFilePath(): string; /** * Load photon configuration from config.json */ export declare function loadPhotonConfig(): Promise; /** * Save photon configuration to config.json */ export declare function savePhotonConfig(config: PhotonConfig): Promise; /** * Get configuration for a specific photon */ export declare function getPhotonEnvVars(photonName: string): Promise>; /** * Set configuration for a specific photon */ export declare function setPhotonEnvVars(photonName: string, envVars: Record): Promise; /** * Apply photon env vars to process.env */ export declare function applyPhotonEnvVars(envVars: Record): void; /** * Resolve environment variable references in a value * Supports ${VAR_NAME} syntax */ export declare function resolveEnvValue(value: string): string; /** * Resolve all env var references in a server config */ export declare function resolveEnvVars(serverConfig: MCPServerConfig): MCPServerConfig; //# sourceMappingURL=photon-config.d.ts.map