import type { KnowledgeProposal } from "./codegraph.js"; /** * Convert codegraph ingestion output into the proposals file payload * and persist it through `proposal-store.writeProposals()`. * * Replaces the legacy direct-write path that used to populate * `knowledge/index.json` and `knowledge/.md` at ingest time. Codegraph * proposals now sit in the proposals gate until a skill-aware host enriches * them into durable knowledge entries. * * Merge semantics: if a proposals file already exists, proposals from the * existing file with ids NOT present in the new extraction are preserved. * This protects backfilled proposals (with empty structuralFacts) and any * other pending entries from being clobbered when codegraph re-runs. The new * extraction wins on collisions — a fresh extraction produces fresher facts. */ export declare function writeProposalsFile(slug: string, proposals: KnowledgeProposal[], graphJsonContent: string): Promise<{ written: number; fingerprint: string; preserved: number; }>; //# sourceMappingURL=codegraph-knowledge.d.ts.map