type FieldLabelContextType = { id?: string; ref?: React.RefObject; }; export declare const FieldLabelContextProvider: import("react").Provider; export declare const InputIdContextProvider: import("react").Provider; export declare const InputDescribedByProvider: import("react").Provider; export declare const InputInvalidProvider: import("react").Provider; interface UseInputAttributesArgs { /** Set this to `true` if the underlying element is not directly [labelable as per the HTML specification](https://html.spec.whatwg.org/multipage/forms.html#category-label). */ nonLabelable?: boolean; } export declare function useInputAttributes({ nonLabelable }?: UseInputAttributesArgs): { id: string | undefined; 'aria-labelledby': string | undefined; 'aria-describedby': string | undefined; 'aria-invalid': boolean | undefined; }; export declare function useFieldLabelRef(): import("react").RefObject | undefined; export interface WithInputAttributesProps { inputAttributes: ReturnType; } export declare function withInputAttributes>(Component: React.ComponentType, args?: UseInputAttributesArgs): { (props: Omit): import("react").JSX.Element; displayName: string; }; export {}; //# sourceMappingURL=contexts.d.ts.map