import type { ToolDef } from './types.js'; /** Byte budget for one server's whole tool list, across pages. */ export declare const LIST_BYTES = 1048576; /** Most tools one server may advertise before the list is refused as abusive. */ export declare const MAX_TOOLS = 256; /** Most `tools/list` pages followed before a server is refused as looping. */ export declare const MAX_PAGES = 32; export interface ToolPage { result: unknown; bytes: number; } export interface ListLimits { maxTools: number; maxBytes: number; } /** The live proxy's bounds: a list past them is refused before any of it reaches a client. */ export declare const WRAP_LIST_LIMITS: ListLimits; /** * `scan` reads once and exposes nothing, so it can afford the real servers that exceed the * proxy's bounds: the 2026-10-01 corpus has servers with 302, 438 and 453 tools (1.2 MB). */ export declare const SCAN_LIST_LIMITS: ListLimits; /** * Collect every page of a server's `tools/list`, validating each definition the * way the wrap proxy always has: a tool is an object with a non-empty, unique * string name; `description` and `title` are strings when present; `inputSchema`, * `outputSchema` and `annotations` are objects when present. Missing description * and schema are filled in, so every gate sees the same shape. * * Shared by `wrap` (the live proxy) and `scan` (the one-shot client) so that a * definition the proxy would refuse is refused by the scanner too, and vice versa. */ export declare function listAllTools(requestPage: (cursor?: string) => Promise, limits?: ListLimits): Promise; //# sourceMappingURL=tool-list.d.ts.map