export type WidgetInit = (el: HTMLElement, props?: Record) => { destroy?: () => void; } | void; export type WidgetDefinition = { id: string; init: WidgetInit; styles?: string[]; }; export declare function registerWidget(def: WidgetDefinition): void; export declare function getWidget(id: string): WidgetDefinition; export declare function listWidgets(): WidgetDefinition[];