import type { ToolRegistry, ToolRegistryView, ToolViewOptions } from "@pixerate/editor/tools"; type MaybeGetter = T | (() => T); export interface SvelteToolRegistryView { /** The view, or `null` while there is no registry (reactive). */ readonly view: ToolRegistryView | null; } /** * A `registry.view(options)` for the lifetime of the calling component: serve it with * `useToolBridge` or `createMcpServer` instead of the registry to show an agent only some * toolsets, only read tools, or a discovery surface (`discovery`). Pass getters to react to * changes: a new `toolsets` value (e.g. the focused editor's) updates the same view and * announces the new tool list; a new registry, `readOnly` or `discovery` makes a new view. * Parity with React's `useToolRegistryView`. */ export declare function useToolRegistryView(registry: MaybeGetter, options?: MaybeGetter): SvelteToolRegistryView; export {};