import * as React from 'react'; import type { FormContextValue, FormHandle, FormProps, FormRootProps } from './types.js'; export declare const FormProvider: React.FC, useFormContext: (consumerName: string) => FormContextValue; /** * Wires the native Constraint Validation API into a headless error-message * system, handing per-field `ValidityState` snapshots to * `FormField`/`FormControl`/`FormMessage` via context. * * @example * ```tsx * import { FormControl, FormFieldRoot, FormLabel, FormMessage, FormRoot, FormSubmit } from '@skdx/react/primitives/form'; * * console.log('submitted')}> * * Email * * * * Email is required. * Enter a valid email. * * Submit * * ``` */ export declare const FormRoot: { ({ errors, onSubmit, onReset, onFieldInvalid, validationMode, validationBehavior, ref: forwardedRef, density, ...props }: Omit & { ref?: React.Ref | undefined; }): React.ReactNode; displayName: string; }; /** * A form: native constraint validation wired into a headless error-message * system, with per-field `ValidityState` snapshots handed to every descendant * `FormField`. * * @example * ```tsx *
* * * *
* ``` */ export declare const Form: { ({ errorSummary, submitLabel, children, ref: forwardedRef, ...rest }: Omit & { ref?: React.Ref | undefined; }): React.ReactNode; displayName: string; };