import type { KnowledgeChunk, KnowledgeSourceKind, NormalizedKnowledgePage } from '@devflow-tools/sdk'; import { type StructuralMarkdownChunkOptions } from './structural-markdown-chunker.js'; import { analyzeKnowledgeSource, type HostKnowledgeAnalysis } from './knowledge-analysis-manifest.js'; export declare const KNOWLEDGE_COMPILER_VERSION = "knowledge-r6b.v1"; export interface HostGeneratedKnowledgeDerivations { aliases?: string[]; summaries?: string[]; relations?: Array<{ source: string; target: string; type: string; }>; manifest?: HostKnowledgeAnalysis; } export interface CompileKnowledgeSourceInput { projectRoot: string; projectId: string; sourceId: string; sourceSchemaId: string; sourceKind: KnowledgeSourceKind; sourceUri: string; markdown: string; version?: string; retrievedAt?: number; compiledAt?: number; title?: string; chunkOptions?: StructuralMarkdownChunkOptions; hostGenerated?: HostGeneratedKnowledgeDerivations; } export interface CompiledKnowledgeSource { page: NormalizedKnowledgePage; chunks: KnowledgeChunk[]; quarantinedDerivations: { aliases: string[]; summaries: string[]; relations: Array<{ source: string; target: string; type: string; }>; }; analysis: ReturnType; } export declare class KnowledgeCompiler { compile(input: CompileKnowledgeSourceInput): CompiledKnowledgeSource; } export declare function compileKnowledgeSource(input: CompileKnowledgeSourceInput): CompiledKnowledgeSource; //# sourceMappingURL=knowledge-compiler.d.ts.map