/** * Token-efficient response formatting for MCP tool results. * * Mirrors the elnora-cli's --compact and --fields flags: * - compact: strips null/undefined/empty values (saves ~30-40% tokens) * - fields: only includes specified fields in response objects * * Applied transparently by withGuard() — individual tool handlers don't * need to change. Non-JSON responses pass through untouched. */ import { z } from "zod"; /** * Shared Zod schema fragment for output options. * Spread this into any tool's inputSchema to enable compact/fields. */ export declare const OUTPUT_OPTIONS_SCHEMA: { compact: z.ZodOptional>; fields: z.ZodOptional; }; /** * Post-process a JSON string tool result with compact/fields options. * Returns the original string unchanged if no options are active or if * the string is not valid JSON. */ export declare function formatToolResult(jsonString: string, options: { compact?: boolean; fields?: string; }): string; //# sourceMappingURL=response-formatter.d.ts.map