/** * Knowledge Base Management * * CRUD operations for the KnowledgeBase registry table. * Each KB is a tenant — entries, tags, triage items, etc. are scoped to a KB. */ import type { KnowledgeBase, KnowledgeBaseInput, KnowledgeBaseUpdate } from '../types.ts'; /** * Create a new knowledge base. * * @param data - KB data to create * @returns The created knowledge base * @throws Error if a KB with the same id already exists */ export declare function createKnowledgeBase(data: KnowledgeBaseInput): Promise; /** * Get a knowledge base by ID. * * @param id - KB identifier * @returns The KB record, or null if not found */ export declare function getKnowledgeBase(id: string): Promise; /** * Update an existing knowledge base. * * @param id - KB identifier * @param data - Fields to update * @returns The updated KB record * @throws Error if the KB does not exist */ export declare function updateKnowledgeBase(id: string, data: KnowledgeBaseUpdate): Promise; /** * Delete a knowledge base. * * Only deletes the registry record — does NOT cascade to entries, tags, etc. * The caller is responsible for cleanup or can leave orphaned data for * eventual consistency. * * @param id - KB identifier * @throws Error if the KB does not exist */ export declare function deleteKnowledgeBase(id: string): Promise; /** * List all knowledge bases. * * @returns Array of KB records */ export declare function listKnowledgeBases(): Promise; //# sourceMappingURL=knowledge-base.d.ts.map