import { MultiDbManager } from '../core/multi-db-manager'; import { IdMapper } from '../core/id-mapper'; import { EntityReference } from '../models/entity-reference'; /** * Structured context for an entity or set of entities. * Contains all relevant information from 5D-DBs WITHOUT AI generation. */ export interface StructuredContext { entities: Array<{ dimension: 'X' | 'Y' | 'Z' | 'W' | 'T'; entityId: string; externalId: string; details: any; }>; related: Array<{ entityRef: EntityReference; relationship: string; }>; adrs: Array<{ adr_number: string; title: string; content_preview: string; }>; dependencies: Array<{ from: string; to: string; type: string; }>; entryPoints: Array; } /** * Builds structured, deterministic context from 5D-DBs. * NO AI generation - only data from databases. */ export declare class ContextBuilder { private dbManager; private crossDimensionApi; private moduleApi; private symbolApi; private dependencyApi; private adrApi; private changeApi; constructor(dbManager: MultiDbManager, idMapper: IdMapper); /** * Builds structured context for a set of entity references. * * @param entityRefs Entity references to build context for * @param pluginId Plugin ID * @returns Promise that resolves to structured context */ buildContext(entityRefs: EntityReference[], pluginId: string): Promise; /** * Gets entity details from the corresponding dimension. */ private getEntityDetails; /** * Gets related entities via CrossDimensionApi. */ private getRelatedEntities; /** * Gets relevant ADRs for an entity. */ private getRelevantAdrs; /** * Gets dependencies for an entity. */ private getDependencies; /** * Gets entry points for the system. */ private getEntryPoints; /** * Deduplicates ADRs by adr_number. */ private deduplicateAdrs; /** * Deduplicates dependencies by from+to+type. */ private deduplicateDependencies; } //# sourceMappingURL=context-builder.d.ts.map