export interface VisionModelConfig { provider: string; model: string; } export declare const VISUAL_SYSTEM_PROMPT = "You are a visual analysis assistant for browser automation. You receive a screenshot of a web page and an instruction.\n\nCOORDINATES:\n- Pixel-based, relative to the visible viewport; (0, 0) is the top-left.\n- Estimate positions from the screenshot.\n\nRULES:\n- You only analyze; you never act.\n- Give exact (x, y) coordinates when the instruction asks for an element, so the caller can use coordinate click tools.\n- If the target is not visible, say so explicitly instead of guessing.\n- Be concise and actionable."; interface ModelRegistry { find(provider: string, modelId: string): unknown; getApiKeyAndHeaders(model: unknown): Promise<{ ok: true; apiKey?: string; headers?: Record; } | { ok: false; error: string; }>; } export declare function createRegistryVisionCaller(visionConfig: VisionModelConfig, registry: ModelRegistry): (instruction: string, imageBase64: string, mimeType: string, signal?: AbortSignal) => Promise; interface BrowserClient { callTool(name: string, args: unknown, signal?: AbortSignal): Promise; } export declare function handleAnalyzeScreenshot(client: BrowserClient, callVision: (instruction: string, imageBase64: string, mimeType: string, signal?: AbortSignal) => Promise, args: { instruction?: string; pageId?: number; }, signal?: AbortSignal): Promise<{ content: Array<{ type: string; text?: string; }>; isError?: boolean; }>; export {}; //# sourceMappingURL=vision.d.ts.map