/** DSH model-facing tools that map to pi-control-chrome Bridge methods. */ import type { Context } from '@deepseek-ai/cordis'; import type { AttachmentStore } from '@deepseek-ai/dsh-attachment'; import { type JsonValue, type ParameterSchemaSpec } from '@deepseek-ai/dsh-tools'; import type { BrowserBridgeClient } from './bridge.js'; import type { ResolvedConfig } from './types.js'; interface BrowserToolSpec { readonly name: string; readonly description: string; readonly parameters: ParameterSchemaSpec; readonly method: string; readonly prepare?: (args: Record) => Record; } /** All browser tools exposed by the package. */ export declare const BROWSER_TOOL_NAMES: string[]; /** * Register browser tools globally or after the browser Skill loads in an Agent scope. * The returned idempotent disposer closes new browser operations, waits for active * executions and per-session cleanup, retries final recovery, and contains disposal failures. */ export declare function registerBrowserTools(ctx: Context, bridge: BrowserBridgeClient, attachments: AttachmentStore | undefined, resolveSettings: () => ResolvedConfig): () => Promise; /** Expose the tool catalogs for tests and package consumers. */ export declare const browserToolCatalog: { readonly core: readonly BrowserToolSpec[]; readonly advanced: readonly BrowserToolSpec[]; }; export {}; //# sourceMappingURL=tools.d.ts.map