/** * Memory-pack endpoint (KF-B + Wave 4d injection policy): * POST /recall/pack { repo, project?, branch?, budget_tokens?, prompt? } * Returns { pack: , memories: [...] }. Empty pack on zero matches (200). * * When `prompt` is supplied, the ADR-005 injection-policy v1 layer decides * whether anything should be injected at all (task-type gating, confidence * threshold, token-budget shrink) and the response gains * `decision: { inject, reason, budget_tokens }`. Without `prompt` the legacy * always-select behavior is preserved (existing hook clients unaffected). */ import type { FastifyInstance } from 'fastify'; import type { DB } from '../../storage/db.js'; import type { Config } from '../../config/config.js'; export declare function recallRoute(db: DB, config?: Config): (app: FastifyInstance) => Promise;