/** * MAMA Graph API * * HTTP API endpoints for Graph Viewer. * Provides /graph endpoint for fetching decisions and edges data. * Provides /viewer endpoint for serving HTML viewer. */ import type { GraphNode, GraphEdge, CheckpointData, GraphHandlerOptions, GraphHandlerFn } from './graph-api-types.js'; declare const VIEWER_HTML_PATH: string; declare const VIEWER_CSS_PATH: string; declare const DEFAULT_GRAPH_LIMIT = 300; declare function migrateLegacyManagedBackends>(config: T): T; type GraphDecisionRow = { id: string; topic: string; decision: string; reasoning: string; outcome: string | null; confidence: number | null; created_at: number; }; declare function mapDecisionRowToGraphNode(row: GraphDecisionRow): GraphNode; declare function parseGraphLimit(params: URLSearchParams): number | null; declare function buildGraphMeta(input: { totalNodes: number; totalEdges: number; similarityEdges: number; isPartial: boolean; returnedNodes: number; returnedEdges: number; }): Record; declare function getAllNodes(limit?: number | null): Promise; declare function getAllEdges(): Promise; declare function getAllCheckpoints(): Promise; declare function getUniqueTopics(nodes: GraphNode[]): string[]; declare function filterNodesByTopic(nodes: GraphNode[], topic: string): GraphNode[]; declare function filterEdgesByNodes(edges: GraphEdge[], nodes: GraphNode[]): GraphEdge[]; declare function createGraphHandler(options?: GraphHandlerOptions): GraphHandlerFn; declare function validateConfigUpdate(config: Record): string[]; export { createGraphHandler, DEFAULT_GRAPH_LIMIT, mapDecisionRowToGraphNode, parseGraphLimit, buildGraphMeta, validateConfigUpdate, migrateLegacyManagedBackends, getAllNodes, getAllEdges, getAllCheckpoints, getUniqueTopics, filterNodesByTopic, filterEdgesByNodes, VIEWER_HTML_PATH, VIEWER_CSS_PATH, }; export type { GraphNode, GraphEdge, SimilarityEdge, CheckpointData, GraphHandlerOptions, } from './graph-api-types.js'; //# sourceMappingURL=graph-api.d.ts.map