import type { FastifyInstance } from "fastify"; import type { GraphNode, GraphTree } from "@/types"; import type { Context } from "../agents/context.js"; type MemoryRoutesRuntime = { memory: { readGraph: (ctx: Context) => Promise; readNode: (ctx: Context, nodeId: string) => Promise; }; }; export type GraphTreeJson = { root: GraphNode; children: Record; }; /** * Registers engine API routes for graph-memory read access. * Expects: runtime.memory methods are safe for user-scoped reads. */ export declare function serverMemoryRoutesRegister(app: FastifyInstance, runtime: MemoryRoutesRuntime): void; /** * Converts graph tree maps into plain JSON objects for API responses. * Expects: GraphTree is already normalized by graphTreeBuild. */ export declare function graphTreeJsonBuild(tree: GraphTree): GraphTreeJson; export {}; //# sourceMappingURL=serverMemoryRoutesRegister.d.ts.map