import type { RegisteredWidget, WidgetSpec } from "./types.js"; /** * Every widget type this plugin can render. Adding one here adds it to the * `show_widget` enum, to the generated tool description, and to the config * gate — the tool name and the manifest are untouched. */ export declare const WIDGET_SPECS: readonly WidgetSpec[]; /** * Plugin config gate, keyed by `widget_type`. Absent or `true` means enabled; * only an explicit `false` turns a widget off. Config keys the registry does * not know are ignored, and so is a config value that is not an object. */ export type WidgetsConfig = Record; export interface WidgetRegistry { /** Every spec, including disabled ones. */ all(): readonly RegisteredWidget[]; /** Specs the model may call. Source for the enum and the description. */ enabled(): readonly RegisteredWidget[]; /** Lookup by `widget_type`, enabled or not. */ get(widgetType: string): RegisteredWidget | undefined; enabledTypes(): string[]; } export declare function buildWidgetRegistry(config?: unknown, specs?: readonly WidgetSpec[]): WidgetRegistry; //# sourceMappingURL=registry.d.ts.map