interface UseRefreshWidgetProps { onRefresh: (data: Record) => void; } /** * A custom hook that listens for a specific message event to refresh widget data. * * @param {Object} props - The props object. * @param {Function} props.onRefresh - A callback function to be called when a refresh message is received. * It receives the data from the message event as its argument. * * @returns {void} * * @example * useRefreshWidget({ * onRefresh: (data) => { * // Handle refresh logic here * console.log('Refreshing widget with data:', data); * } * }); */ export declare const useRefreshWidget: ({ onRefresh }: UseRefreshWidgetProps) => void; export {};