import type { WidgetInfo, WidgetRepresentation } from './types'; export interface RequestWidgetUpdateProps { /** * The name of the widget to update */ widgetName: string; /** * 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 no widgets are added on the home screen * It can be used to clean up background tasks that update the widget periodically */ widgetNotFound?: () => void; } /** * Request widget update for a given widget name * A callback will be called for each widget with that name that is added to the home screen * * @param param0 {@link RequestWidgetUpdateProps} */ export declare function requestWidgetUpdate({ widgetName, renderWidget, widgetNotFound, }: RequestWidgetUpdateProps): Promise; //# sourceMappingURL=request-widget-update.d.ts.map