/** * config.ts * Centralize configuration constants, driven by a swappable preset */ export interface SearchConfig { defaultLimit: number; maxLimit: number; minScore: number; semanticSearchEnabled: boolean; semanticMinSimilarity: number; hybridKeywordWeight: number; hybridSemanticWeight: number; } export interface DocUrlConfig { base: string; useFrontmatterId: boolean; } export interface SectionResourceOverride { name: string; description: string; } /** * Static values that fully describe a docs source (react.dev, react-native-website, etc.) */ export interface DocsMcpPreset { cacheDirName: string; repoFolderName: string; repo: { url: string; contentPath: string; }; search: SearchConfig; server: { name: string; version: string; }; sections: readonly string[]; resourceUriScheme: string; docsLabel: string; searchToolName: string; searchToolDescription: string; pathExample: string; docUrl: DocUrlConfig; sectionResourceOverrides?: Partial>; } /** * Resolved runtime config: preset values with repo.localPath derived from the * cache dir. Derived from DocsMcpPreset so new preset fields flow through. */ export type DocsMcpConfig = Omit & { repo: { url: string; contentPath: string; localPath: string; }; }; declare let activeConfig: DocsMcpConfig; export declare function configure(preset: DocsMcpPreset): void; export { activeConfig as default }; //# sourceMappingURL=config.d.ts.map