import type { PropsConfig, Widget, WidgetFactory, WidgetProps } from '../types'; /** * Define a widget factory that can be linked with configuration through the provided widget name. * * @param widgetName - the widget name, used for configuration injection * @param factory - the widget factory function * @template W - The type of the widget * @template T - The type of the widget factory function. Useful when the widget factory has a generic. * @returns the widget factory */ export declare function createWidgetFactory>) => W = (config?: PropsConfig>) => W>(widgetName: string, factory: T): WidgetFactory;