import { BaseCache } from '../../cache/base.js'; import * as promise_based_task from 'promise-based-task'; import { customsearch_v1 } from '@googleapis/customsearch'; import { SearchToolOptions, SearchToolResult, SearchToolOutput, SearchToolRunOptions } from './base.js'; import { Tool, ToolEmitter, ToolInput } from '../base.js'; import { z } from 'zod'; import { RunContext } from '../../context.js'; import { E as Emitter } from '../../emitter-l0W9gC1A.js'; import '../../internals/serializable.js'; import '../../internals/types.js'; import '../../internals/helpers/guards.js'; import 'ajv'; import '../../internals/helpers/promise.js'; import '../../errors.js'; import '../../internals/helpers/schema.js'; import 'zod-to-json-schema'; interface GoogleSearchToolOptions extends SearchToolOptions { apiKey?: string; cseId?: string; maxResults: number; } type GoogleSearchToolRunOptions = SearchToolRunOptions; interface GoogleSearchToolResult extends SearchToolResult { } declare class GoogleSearchToolOutput extends SearchToolOutput { readonly results: GoogleSearchToolResult[]; constructor(results: GoogleSearchToolResult[]); createSnapshot(): { results: GoogleSearchToolResult[]; }; loadSnapshot(snapshot: ReturnType): void; } declare class GoogleSearchTool extends Tool { name: string; description: string; readonly emitter: ToolEmitter, GoogleSearchToolOutput>; inputSchema(): z.ZodObject<{ query: z.ZodString; }, "strip", z.ZodTypeAny, { query: string; }, { query: string; }>; protected apiKey: string; protected cseId: string; constructor(options?: GoogleSearchToolOptions); protected get client(): customsearch_v1.Customsearch; protected _run({ query: input }: ToolInput, _options: Partial, run: RunContext): Promise; createSnapshot(): { apiKey: string; cseId: string; name: string; description: string; options: GoogleSearchToolOptions; cache: BaseCache>; emitter: Emitter; }; loadSnapshot({ apiKey, cseId, ...snapshot }: ReturnType): void; } export { GoogleSearchTool, type GoogleSearchToolOptions, GoogleSearchToolOutput, type GoogleSearchToolResult };