import type { ExtensionAPI, ExtensionContext, ToolDefinition } from "@earendil-works/pi-coding-agent"; import { Type } from "typebox"; export declare const WEB_SEARCH_UNSUPPORTED_MESSAGE = "web_run/imagegen requires an OpenAI Codex-compatible Responses provider or /login openai-codex"; declare const WEB_SEARCH_PARAMETERS: Type.TObject<{ search_query: Type.TOptional; domains: Type.TOptional>; }>>>; image_query: Type.TOptional; domains: Type.TOptional>; }>>>; open: Type.TOptional; }>>>; click: Type.TOptional>>; find: Type.TOptional>>; response_length: Type.TOptional, Type.TLiteral<"medium">, Type.TLiteral<"long">]>>; settings: Type.TOptional, Type.TLiteral<"medium">, Type.TLiteral<"high">]>>; }>>; }>; type WebRunOutput = Record & { encrypted_output?: string | undefined; output_text?: string | undefined; output?: string | undefined; text?: string | undefined; }; type WebRunExecutionResult = { text: string; details: WebRunOutput; }; export interface WebSearchToolOptions { customRustBinariesDir?: string | undefined; sessionId?: string | undefined; model?: string | (() => string | undefined) | undefined; allowConfiguredProvider?: ((model: ExtensionContext["model"]) => boolean) | undefined; allowCodexProviderFallback?: boolean | undefined; customRendering?: boolean | undefined; promptSnippet?: boolean | undefined; } export declare function executeCodexWebSearch(params: Record, ctx: ExtensionContext, signal: AbortSignal | undefined | null, options?: WebSearchToolOptions): Promise; export declare function createWebSearchTool(name?: string, options?: WebSearchToolOptions): ToolDefinition; export declare function registerWebSearchTool(pi: ExtensionAPI, name?: string, options?: WebSearchToolOptions): void; export {};