/** * `/api/dashboard/stats` — knowledge-base size + freshness for the * Dashboard Stats page. Wraps the same engram `healthCheck()` the * MCP `kb_stats` tool reads, then layers per-source counts and recent * activity by querying engram directly. * * Response shape: * { * kb: { healthy, totalChunks, ...details } // raw engram stats * sources: [{ source, count, lastIngestAt }] // per-source breakdown * recentActivity: { last24h, last7d } // simple counters * workspace * } * * Auth: scoped to `read`. */ import type { IncomingMessage, ServerResponse } from "node:http"; import type { RouteContext } from "../route-context.js"; export declare function handle(req: IncomingMessage, res: ServerResponse, ctx: RouteContext): Promise; //# sourceMappingURL=dashboard-stats.d.ts.map