/** * dsh-browser-use — Browser Use bridge for DeepSeek Harness. * * Registers `browser_use_run`, a model-facing tool that runs a real web task * through the Browser Use Cloud API (open pages, click, type, fill forms, * extract data). This is a thin, honest bridge: it forwards the task and * returns the raw run result; it does not reimplement Browser Use. * * @module dsh-browser-use */ import type { Context } from '@deepseek-ai/cordis'; export declare const name = "dsh-browser-use"; export declare const inject: string[]; export declare const TESTED_PEER_RANGE = "^0.1.0-rc.6"; export declare function resolvedDshToolsVersion(): string; export declare function assertPeerCompatible(): void; export interface Config { /** Browser Use API key. Defaults to the BROWSER_USE_API_KEY env var. */ apiKey?: string; /** Cloud API base URL. Defaults to https://api.browser-use.com. */ baseUrl?: string; /** Request timeout in milliseconds. Defaults to 300000 (5 min). */ timeoutMs?: number; /** Optional default model, e.g. openai/gpt-5.5. */ model?: string; } export declare const DEFAULT_BASE_URL = "https://api.browser-use.com"; /** POST a task to the Browser Use Cloud API and return the raw run result. */ export declare function runBrowserTask(task: string, config: Config, signal: AbortSignal): Promise; export declare function apply(ctx: Context, config?: Config): void;