import { type TSchema } from 'typebox'; import { DevToolsClient, type ToolAnnotations } from './client.js'; import { type BrowserUseConfig } from './config.js'; import { PersistentBackend, type PersistentBackendOptions } from './persistent-backend.js'; import { handleAnalyzeScreenshot } from './vision.js'; type UpstreamResult = { content?: Array<{ type: string; text?: string; data?: string; mimeType?: string; }>; isError?: boolean; }; export type VisionCaller = Parameters[1]; export interface BrowserToolContext { callVision?: VisionCaller; } export interface BrowserToolDefinition { name: string; label: string; description: string; parameters: TSchema; annotations?: ToolAnnotations; execute: (params: Record, signal?: AbortSignal, context?: BrowserToolContext) => Promise; } type BrowserClient = Pick; type BrowserBackend = Pick; export interface BrowserRuntimeOptions { config?: BrowserUseConfig; defaultProfileDir?: string; artifactDir?: string; visionEnabled?: boolean; lazyBrowser?: boolean; createClient?: (config: BrowserUseConfig) => BrowserClient; createBackend?: (options: PersistentBackendOptions) => BrowserBackend; } export declare function createBrowserRuntime(options?: BrowserRuntimeOptions): { start: () => Promise; stop: () => Promise; }; export type BrowserRuntime = ReturnType; export {}; //# sourceMappingURL=runtime.d.ts.map