import * as React from 'react'; import type { WidgetInfo } from './types'; export interface WidgetConfigurationScreenProps { /** * Information about the widget being configured. */ widgetInfo: WidgetInfo; /** * Function that can be called with the Widget JSX to render */ renderWidget: (widgetComponent: React.JSX.Element) => void; /** * This must be called after finishing with configuration. * 'ok' means the widget is configured and can be added, * 'cancel' means the configuration process is canceled and the widget will be removed if this is the first time configuring it */ setResult: (result: 'ok' | 'cancel') => void; } export type WidgetConfigurationScreen = (props: WidgetConfigurationScreenProps) => React.JSX.Element; /** * Register a screen that will handle widget configuration * * @param WidgetConfigurationScreenComponent {@link WidgetConfigurationScreen} */ export declare function registerWidgetConfigurationScreen(WidgetConfigurationScreenComponent: WidgetConfigurationScreen): void; //# sourceMappingURL=register-widget-configuration-screen.d.ts.map