/** A combined-tool allowlist spec from the ladder's `combiner.directTools` key: * a glob allowlist, or "search" (legacy adapter semantics — deprecated in the * native mode, where tool_search replaces it). */ export type DirectToolsSpec = string[] | "search"; /** Names that must never be shadowed by a promoted/registered tool (pi builtins). * Callers add their own tool names on top. */ export declare const RESERVED_TOOL_NAMES: readonly ["read", "bash", "edit", "write", "grep", "find", "ls", "mcp", "glob"]; /** Apply a server allow/deny filter to a combined tool list. Server names may * contain underscores (gws_georgeharker), so matching is by PREFIX — a tool * belongs to entry E iff its name starts `E_` (subsumes first-segment equality). */ export declare function toolServerMatches(toolName: string, serverEntry: string): boolean; /** Apply a server allow/deny filter to a combined tool list (`_` prefix, * underscore-safe via toolServerMatches). */ export declare function applyServerFilter(tools: ToolSummary[], filter: { allow?: string[]; deny?: string[]; } | undefined): ToolSummary[]; /** fnmatch-lite: `*` → any run, `?` → one char, everything else literal. */ export declare function globToRegExp(pattern: string): RegExp; export declare function matchesGlob(name: string, pattern: string): boolean; export type ToolSummary = { name: string; description?: string; inputSchema?: unknown; annotations?: { readOnlyHint?: boolean; destructiveHint?: boolean; idempotentHint?: boolean; openWorldHint?: boolean; }; }; //# sourceMappingURL=tool-matching.d.ts.map