import { RequestContext } from "../server.js"; /** * Wraps a tool handler with scope enforcement, invocation logging, and * token-efficient response formatting (compact/fields post-processing). * * CoSAI MCP-T2 (scope enforcement) + MCP-T12 (audit logging). */ export declare function withGuard>(toolName: string, getContext: () => RequestContext, handler: (params: T) => Promise<{ content: { type: "text"; text: string; }[]; isError?: boolean; }>): (params: T) => Promise<{ content: { type: "text"; text: string; }[]; isError?: boolean; }>; //# sourceMappingURL=with-guard.d.ts.map