import * as React from 'react';

interface FieldControlState {
    id: string;
    invalid: boolean;
    required?: boolean;
    describedBy?: string;
}
declare const FieldContext: React.Context<FieldControlState | null>;
declare function useFieldControl(): FieldControlState | null;
interface FieldProps {
    label: string;
    htmlFor?: string;
    hint?: string;
    error?: string;
    required?: boolean;
    children: React.ReactNode;
}
declare function Field({ label, htmlFor, hint, error, required, children }: FieldProps): React.JSX.Element;

export { Field, FieldContext, type FieldControlState, type FieldProps, useFieldControl };
