/** * Audit Resource Handler * * Serves the memory://audit resource โ€” the last 50 telemetry entries * as a structured, YAML-style text payload with a session summary * including token totals and error counts. * * Per mcp-builder ยง2.3: annotated as ASSISTANT_FOCUSED (agent-only). * * When telemetry logging is not configured, returns a brief informational * message with a setup hint. * * Uses the AuditLogger.recent() streaming tail-read (64KB window) * instead of loading the entire file โ€” O(1) memory regardless of * telemetry log size. */ import type { InternalResourceDef } from '../handlers/resources/shared.js'; import type { AuditLogger } from './audit-logger.js'; /** * Returns the InternalResourceDef for memory://audit. * The AuditLogger instance is bound at creation time. * * @param getLogger - A function that returns the current AuditLogger instance (or null). * Using a getter function avoids capturing a null reference at registration * time โ€” the logger may not exist yet when resources are registered. */ export declare function getAuditResourceDef(getLogger: () => AuditLogger | null): InternalResourceDef; //# sourceMappingURL=audit-resource.d.ts.map