import type { ReactNode } from 'react';
import type { WidgetContextValue } from '../types';
interface ProviderProps {
    value: WidgetContextValue;
    children: ReactNode;
}
/**
 * Provides the current widget's identity to its render subtree.
 *
 * @param {ProviderProps} props Component props.
 */
export declare function WidgetContextProvider({ value, children, }: ProviderProps): React.ReactNode;
/**
 * Returns the current widget's identity (`uuid`, `name`, `index`). Returns
 * `null` when called outside a widget render subtree.
 */
export declare function useWidgetContext(): WidgetContextValue | null;
export {};
//# sourceMappingURL=widget-context.d.ts.map