import { WidgetModel } from '../editor/widget-framework/widget-model'; export declare const EVENTS: { PERSONALIZED_WIDGETS_LOADED: string; }; export interface PersonalizedWidgetsPayload { [key: string]: { ssr: boolean; data: WidgetModel | string; }; } /** * Returns a stateful event payload value and a function to dispatch an event with data. * @param eventKey The custom event key to be dispatched and listened to. * @param attach Whether to create an event listener in the current hook instance or skip it. */ export declare function useSfEvents(eventKey: string, attach?: boolean): [T | null, (data: T) => void];