import type { WidgetInfo, WidgetRepresentation } from './types'; export interface RequestWidgetUpdateByIdProps { /** * The name of the widget to update */ widgetName: string; /** * The id of the widget to update */ widgetId: number; /** * Callback function that will be called with {@link WidgetInfo} * It should return the JSX of the updated widget */ renderWidget: (props: WidgetInfo) => Promise | WidgetRepresentation; /** * Callback function that will be called if widget does not exist * It can be used to clean up background tasks that update the widget periodically */ widgetNotFound?: () => void; } /** * Request widget update for a given widget name and id * A callback will be called for the widget with the given id * * @param param0 {@link RequestWidgetUpdateByIdProps} */ export declare function requestWidgetUpdateById({ widgetName, widgetId, renderWidget, widgetNotFound, }: RequestWidgetUpdateByIdProps): Promise; //# sourceMappingURL=request-widget-update-by-id.d.ts.map