import { WidgetApi, WidgetParameters, WidgetRegistration } from './types'; /** * Checks whether the necessary widget parameters were provided to the widget. * * @param widgetApi - The widget api to read the parameters from * @returns True, if all parameters were provided. */ export declare function hasWidgetParameters(widgetApi: WidgetApi): boolean; /** * Generate a registration URL for the widget based on the current URL and * include all widget parameters (and their placeholders). * @param options - Options for generating the URL. * Use `pathName` to include an optional sub path in the URL. * Use `includeParameters` to append the widget parameters to * the URL, defaults to `true`. * @returns The generated URL. */ export declare function generateWidgetRegistrationUrl(options?: { pathName?: string; includeParameters?: boolean; widgetParameters?: Partial; }): string; export declare const STATE_EVENT_WIDGETS = "im.vector.modular.widgets"; /** * Repair/configure the registration of the current widget. * This steps make sure to include all the required widget parameters in the * URL. Support setting a widget name and additional parameters. * * @param widgetApi - The widget api of the current widget. * @param registration - Optional configuration options for the widget * registration, like the display name of the widget. */ export declare function repairWidgetRegistration(widgetApi: WidgetApi, registration?: WidgetRegistration): Promise;