/** * Widget Registry * * Manages widget metadata and example resolution */ export interface WidgetExample { name: string; description: string; data: Record; } export interface WidgetMetadata { uri: string; name: string; description: string; examples: WidgetExample[]; tags?: string[]; } export interface WidgetManifest { version: string; widgets: WidgetMetadata[]; generatedAt: string; } /** * Widget Registry * Loads and manages widget metadata from manifest */ export declare class WidgetRegistry { private widgets; private loaded; /** * Load widget manifest from file */ loadManifest(manifestPath: string): void; /** * Get all widgets */ getAllWidgets(): WidgetMetadata[]; /** * Get widget by URI */ getWidget(uri: string): WidgetMetadata | undefined; /** * Get widget example data * Returns the first example's data, or undefined if no examples */ getWidgetExampleData(uri: string): Record | undefined; /** * Check if manifest is loaded */ isLoaded(): boolean; } /** * Get the global widget registry instance */ export declare function getWidgetRegistry(): WidgetRegistry; //# sourceMappingURL=widget-registry.d.ts.map