import { type RegisteredTool } from '../../mcp/server.ts'; import type { AttachState } from '../../mcp/tools/agent/attach.ts'; import type { ReclaimOldClient } from '../client.ts'; /** * Publish a drafted provider to the OLD devtools backend. Keeps the builder * tool NAME (`create_provider_version_from_capture`) so the skill flow is * unchanged, but the behavior differs: * * - WITHOUT `providerId` → `POST /api/providers/register`: creates a * brand-new provider + version 1.0.0. Re-running creates a DUPLICATE. * - WITH `providerId` → `POST /api/providers/:providerId/config`: adds a * new immutable version to an existing provider (patch by default; * major/minor/patch or an exact higher version when requested). * * Get a `providerId` from `get_me_providers`. * * `attachRef`, when given, is checked after a successful publish: if a * browser is still attached, a `_notes` entry reminds the caller to confirm * with the developer before closing it (see `dispose_browser`) rather than * closing it unprompted — the developer may still want the session for * further edits. */ export declare function createVersionFromCaptureTool(client: ReclaimOldClient, attachRef?: { current?: AttachState; }): RegisteredTool;