export type ConnectionType = 'openai' | 'azure-openai' | 'anthropic' | 'bedrock'; export type SecretValue = string | { env: string; }; export interface ConnectionModelEntry { upstreamModel: string; family?: 'openai' | 'claude'; displayName?: string; capabilities?: string[]; } export interface ConnectionEntry { name: string; type: ConnectionType; active?: boolean; settings?: Record; secret?: SecretValue; sessionToken?: SecretValue; models?: ConnectionModelEntry[]; } export interface ConnectionsFile { version: 1; connections: ConnectionEntry[]; } export declare class ConnectionsFileError extends Error { readonly path: string; readonly reason: string; readonly code: 'invalid' | 'unknown_setting'; constructor(path: string, reason: string, code?: 'invalid' | 'unknown_setting'); } export declare function validateConnectionsFile(doc: unknown): void; export declare function modelIdOf(upstreamModel: string, name: string): string; export declare function readConnections(): ConnectionsFile; export declare function writeConnections(file: ConnectionsFile): void; export declare function addConnection(conn: ConnectionEntry): void; export declare function removeConnection(name: string): string[]; export declare function addModel(name: string, model: ConnectionModelEntry): void; export declare function removeModel(name: string, upstreamModel: string): void; //# sourceMappingURL=connections-storage.d.ts.map