/** * BRAIN substrate adapter for the Living Brain API. * * Queries brain.db and returns BrainNodes/BrainEdges for all typed memory tables: * observations, decisions, patterns, learnings, plus the graph layer * (brain_page_nodes / brain_page_edges). * * Cross-substrate bridges are synthesized for: * - brain_page_edges whose to_id references a task (task:T-xxx → tasks:T-xxx) * - brain_page_edges whose to_id is a nexus-style path (foo.ts::Symbol → nexus:...) * - brain_memory_links rows (memory_type + memory_id → task_id link) * - brain_observations.files_modified_json (observation → nexus file path) * * Node IDs are prefixed with "brain:" to prevent collisions. */ import type { BrainEdge, BrainNode, BrainQueryOptions } from '../types.js'; /** * Returns all BrainNodes and BrainEdges sourced from brain.db. * * Pulls from all four typed memory tables plus brain_page_edges. * Emits intra-brain edges between loaded nodes, cross-substrate * brain→tasks bridges, cross-substrate brain→nexus bridges, and * brain_memory_links as cross-substrate edges. * * Applies `minWeight` filter where quality_score is available. * Node count is bounded by `limit / 5` to share budget with other substrates. * * @param options - Query options (limit, minWeight). * @returns Nodes and edges from the BRAIN substrate. */ export declare function getBrainSubstrate(options?: BrainQueryOptions): { nodes: BrainNode[]; edges: BrainEdge[]; }; //# sourceMappingURL=brain.d.ts.map