import { CSSProperties } from "react"; export type StyleConfig = { appWrapperStyle: CSSProperties; modalStyle: CSSProperties; iframeWrapperStyle: CSSProperties; iframeStyle: CSSProperties; }; /** * Hook to manage style state and updates from postMessage events. * * Encapsulates: * - Style state management (current styles and loaded status) * - Style merging logic via postMessage * - Origin validation * - Fallback timeout to ensure modal displays even if STYLE_CONFIG is not received * * @param zeroHashAppURL - The app URL used for origin validation * @param defaultStyles - Default style configuration to use as fallback * @returns Object containing current styles, loaded status, and handler function */ export declare const useStyleUpdates: (zeroHashAppURL: string, defaultStyles: StyleConfig) => { styles: StyleConfig; stylesLoaded: boolean; handleStyleConfig: (incomingStyles: Partial, eventOrigin: string) => boolean; };