import type { ToolDefinition } from "../pi.js"; import type { CombinerConnection, ToolSummary } from "./connection.js"; export type ProxyToolDeps = { connection: CombinerConnection; /** Human label for error messages, e.g. "mcp". */ toolName: string; /** Client-side server filter (mirrors the combiner-side token filter) — a GETTER * so per-session re-resolution (worktrees, project switch) applies mid-flight. */ getServerFilter?: () => { allow?: string[]; deny?: string[]; } | undefined; /** Search-mode directTools hook: given ranked matches, activate them as direct * tools and return the names (empty/undefined when nothing new activated). */ onSearchMatches?: (tools: ToolSummary[]) => string[]; /** Whether interactive-UI results auto-open the browser (default true). */ uiAutoOpen?: boolean; }; /** Open a URL in the user's browser (macOS/xdg); silent no-op elsewhere. */ export declare function openInBrowser(url: string): void; export declare function createMcpTool(deps: ProxyToolDeps): ToolDefinition; //# sourceMappingURL=proxy-tool.d.ts.map