export type ContextScope = { type: 'trunk'; } | { type: 'branch'; branches: string[]; } | { type: 'branch-full'; branches: string[]; } | { type: 'leaves'; keys: string[]; } | { type: 'cross'; branches: string[]; query?: string; }; export interface ContextTreeTrunk { vaultContext: string; globals: Record; stats: { totalEntities: number; entityTypes: string[]; }; } export interface ContextTreeField { key: string; type: string; values?: string[]; } export interface ContextTreeLeaf { key: string; title: string; tags: string[]; summary: string; meta: Record; content?: string; } export interface ContextTreeBranch { entityType: string; plural: string; description: string; fields: ContextTreeField[]; subdirectoryContext: string; leafCount: number; leaves: ContextTreeLeaf[]; } export interface ContextTreeEdge { source: string; target: string; edgeType: string; label?: string; } export interface ContextTree { trunk: ContextTreeTrunk; branches: ContextTreeBranch[]; edges: ContextTreeEdge[]; } /** * Build the full context tree based on scope. */ export declare function buildContextTree(scope: ContextScope, globals: Record): Promise; /** * Expand an existing context tree with additional branches (adds leaf summaries). * Mutates the tree in place and returns it. */ export declare function expandContextTree(tree: ContextTree, additionalBranches: string[]): Promise; //# sourceMappingURL=context-tree.d.ts.map