interface ResolvedConfig {
/** Directory the config file lives in (or the working directory without a config file). */
/** Absolute path of the loaded config file, if any. */
readonly configFile?: string;
readonly version: '2.0' | '3.0' | '3.1' | '3.2' | 'auto';
/** Absolute path or URL. */
readonly external: 'none' | 'local' | 'remote';
readonly allowedDirectories: readonly string[];
readonly allowedHosts: readonly string[];
readonly maxDocuments: number;
readonly headers: Readonly<Record<string, string>>;
readonly timeout: number;
readonly maxBytes: number;
/** Which remote documents are polled for changes while watching, and how often (ms). */
readonly hosts: 'loopback' | 'all' | 'none';
readonly interval: number;
/** Overlay documents applied in order: absolute paths or URLs. */
readonly overlays: readonly string[];
readonly directory: string;
readonly language: 'typescript' | 'javascript';
readonly moduleFormat: 'esm';
readonly declarations: boolean;
readonly importExtension: '.js' | '.ts' | 'none';
readonly barrel: boolean;
readonly groupBy: 'tag' | 'none';
readonly models: 'all' | 'used';
readonly webhooks: boolean;
readonly banner?: string;
readonly adapter: 'fetch' | 'axios';
readonly baseUrl?: string;
readonly operationServers: boolean;
readonly includeCredentials: boolean;
readonly headers: Readonly<Record<string, string>>;
readonly timeout?: number;
readonly responseStyle: 'data' | 'full';
/** TanStack Query hooks (`features.query` or its alias `features.reactQuery`). */
readonly query: false | (ResolvedDataFetching & {
readonly framework: QueryFramework;
readonly swr: false | ResolvedDataFetching;
readonly validation: false | {
readonly library: ValidationLibrary;
readonly response: boolean;
readonly request: boolean;
readonly operations: 'camelCase' | 'PascalCase' | 'snake_case' | 'preserve';
readonly models: 'PascalCase' | 'camelCase' | 'snake_case' | 'preserve';
readonly files: 'kebab-case' | 'camelCase' | 'PascalCase' | 'snake_case';
readonly parameters: 'preserve' | 'camelCase';
readonly inputSuffix: string;
readonly enums: 'union' | 'const';
readonly readonlyProperties: boolean;
readonly readWrite: 'split' | 'merged';
readonly dates: 'string' | 'Date';
readonly allowNetworkAccess: boolean;
readonly include: readonly string[];
readonly exclude: readonly string[];
/** Severities configured per rule; rules not listed keep their defaults. */
readonly rules: Readonly<Record<string, LintSeverity>>;