import React from 'react'; import type { ControlFieldContextValue, ControlFieldGroupContextValue } from './types'; declare const ControlFieldContext: React.Context; export declare const ControlFieldProvider: React.Provider; export declare const ControlFieldGroupProvider: React.Provider; /** Read the enclosing `ControlField.Group` config, if any (non-throwing). */ export declare function useControlFieldGroup(): ControlFieldGroupContextValue | null; /** * Access the enclosing `ControlField` state. Intended for the compound * sub-components (`ControlField.Indicator`, etc.) and custom controls. */ export declare function useControlField(): ControlFieldContextValue; /** Non-throwing variant for optional consumers. */ export declare function useControlFieldContext(): ControlFieldContextValue | null; export default ControlFieldContext;