import { type ConnectToolBridgeOptions, type ToolBridgeStatus, type ToolSource } from "@pixerate/editor/tools"; type MaybeGetter = T | (() => T); export interface SvelteToolBridge { /** "off" while no options are given (reactive). */ readonly status: ToolBridgeStatus | "off"; /** Why the last connection ended (e.g. "Bad token"), when the bridge said. */ readonly detail: string | undefined; /** The id the bridge gave this editor (`list_editors`). */ readonly editorId: string | null; } /** * Connects a `ToolRegistry` (or a view of one, see `useToolRegistryView`) to a local MCP bridge (`pixerate-mcp-bridge`) for the lifetime of * the calling component, so an MCP client can call the page's tools. Pass getters to react to * changes; `null` options stay disconnected. Parity with React's `useToolBridge`. */ export declare function useToolBridge(registry: MaybeGetter, options: MaybeGetter): SvelteToolBridge; export {};