import * as React from 'react'; import type { FormFieldContextValue, FormFieldProps, FormFieldRootProps } from './types.js'; export declare const FormFieldProvider: React.FC, useFormFieldContext: (consumerName: string) => FormFieldContextValue; /** * FormField's root: generates `id`/`messageId`, distributes them with `name` via context, and renders a plain `
`. * * @example * ```tsx * import { FormControl, FormFieldRoot, FormLabel, FormMessage } from '@skdx/react/primitives/form'; * * * Username * * * * Username is required. * * ``` */ export declare const FormFieldRoot: { ({ name, ref: forwardedRef, ...props }: FormFieldRootProps): React.ReactNode; displayName: string; }; /** * One field of a {@link Form}: its label, control, and validation message. * * @example * ```tsx * * * * ``` */ export declare const FormField: { ({ label, message, children, ref: forwardedRef, ...rest }: FormFieldProps): React.ReactNode; displayName: string; };