import React from 'react'; /** * Wraps a rendered widget so nested `` components can identify * which widget instance they belong to without prop-drilling. The iframe * widget shell mounts one of these per widget render. Production * storefront still benefits — widgets get widget context so future v2 * patches (e.g., self-healing on partial render) can find their identity. * * `settings` carries the widget's currently-applied settings (with overlay * already merged in for page-builder mode), so `` can build a * full-replace settings UPDATE op without an extra round-trip. */ export interface WidgetContextValue { uid: string; settings: Record; } export declare function WidgetContextProvider({ uid, settings, children }: { uid: string; settings?: Record; children: React.ReactNode; }): React.ReactElement; export declare function useWidgetUid(): string | null; export declare function useWidgetSettings(): Record; export declare const _WidgetContextRef: React.Context;