/** * DataBridge configuration file (.databridge.json) type definition * * TEACHING NOTE: This is the single source of truth for the config shape. * All commands that read/write .databridge.json should use this type * rather than untyped `any` from fs.readJSON(). */ export interface DataBridgeConfig { /** Config schema version */ version: string; /** Database connection settings */ database: { /** Database connection URL (e.g., postgresql://user:pass@localhost:5432/db) */ url: string; }; /** API generation settings */ api: { /** Output directory for generated API code (default: 'api') */ outputPath: string; /** Server port (default: 3000) */ port: number; /** CORS origin (default: '*') */ cors?: string; /** Server host (default: '0.0.0.0') */ host?: string; /** OpenAPI spec settings */ openapi?: { title?: string; version?: string; description?: string; servers?: Array<{ url: string; description?: string; }>; }; }; /** Authentication settings */ auth?: { /** JWT secret for token signing */ jwtSecret: string; }; /** Project name (optional — may not be present in older configs) */ projectName?: string; } /** * Validate a loaded config object has the minimum required fields. * Returns an array of error messages (empty = valid). * * TEACHING NOTE: We do manual validation rather than Zod here to avoid * adding a runtime dependency to every command. The config is small and * stable, so a hand-written check is sufficient. */ export declare function validateConfig(config: unknown): string[]; //# sourceMappingURL=config.d.ts.map