import { TopologyModel, type TopologyModelOptions } from "./TopologyModel.ts"; export type KnowledgeEntityType = "page" | "entry" | "incident" | "organization" | "person" | "skill" | "technology" | "project" | "section" | "custom"; export type KnowledgeRelationshipKind = "related" | "parent" | "child" | "references" | "mentions" | "depends-on" | "supports" | "contains" | "custom"; export interface KnowledgeEntityInput { id: string; type?: KnowledgeEntityType; title?: string; label?: string; slug?: string; language?: string; subtitle?: string; summary?: string; description?: string; body?: string; tags?: string[]; q?: number; r?: number; relatedIds?: string[]; organizationIds?: string[]; incidentIds?: string[]; personIds?: string[]; metadata?: Record; } export interface KnowledgeRelationshipInput { from: string; to: string; kind?: KnowledgeRelationshipKind; label?: string; active?: boolean; muted?: boolean; } export interface KnowledgeIssue { type: "missing-entity" | "duplicate-entity" | "broken-relationship"; message: string; entityId?: string; relationship?: KnowledgeRelationshipRecord; } export interface KnowledgeEntityRecord { id: string; type: KnowledgeEntityType; title: string; label: string; slug?: string; language?: string; subtitle?: string; summary?: string; description?: string; body?: string; tags: string[]; q?: number; r?: number; metadata: Record; } export interface KnowledgeRelationshipRecord { from: string; to: string; kind: KnowledgeRelationshipKind; label?: string; active?: boolean; muted?: boolean; } export interface KnowledgeRepositorySource { entities: KnowledgeEntityInput[]; relationships?: KnowledgeRelationshipInput[]; } export interface KnowledgeWorldOptions extends Partial { radius?: number; columns?: number; rows?: number; originQ?: number; originR?: number; } export declare class KnowledgeRepository { private readonly entityMap; private readonly relationshipRecords; private readonly issues; constructor(source: KnowledgeRepositorySource); get issuesList(): KnowledgeIssue[]; getEntity(id: string): KnowledgeEntityRecord | null; getByType(type: KnowledgeEntityType): KnowledgeEntityRecord[]; getRelationships(id: string): KnowledgeRelationshipRecord[]; getNeighbors(id: string): KnowledgeEntityRecord[]; getAllEntities(): KnowledgeEntityRecord[]; getAllRelationships(): KnowledgeRelationshipRecord[]; createWorld(options?: KnowledgeWorldOptions): TopologyModel; } //# sourceMappingURL=KnowledgeRepository.d.ts.map