import * as React from 'react'; export interface FormSubmitEventDetails { reason: string; event: Event; } export interface FormActions { /** Validate one field by name, or every field when omitted. */ validate: (fieldName?: string | undefined) => void; } export interface FormProps = Record> extends Omit, 'onSubmit' | 'noValidate' | 'ref' | 'defaultValue' | 'onChange'> { /** Server/external errors keyed by Field.Root `name`; marks fields invalid and shows their Field.Error. */ errors?: Record; /** Called with the collected `{ fieldName: value }` map when the form submits valid. */ onSubmit?: (values: FormValues, eventDetails: FormSubmitEventDetails) => void; /** When fields validate. Field.Root's own validationMode wins. */ validationMode?: 'onSubmit' | 'onBlur' | 'onChange'; /** Imperative `validate(fieldName?)` actions. */ actionsRef?: React.RefObject; /** Class name merged onto the root element. */ className?: string; /** Content rendered inside the component. */ children?: React.ReactNode; /** Ref to the rendered root element. */ ref?: React.Ref; } export declare function Form = Record>(props: FormProps): React.JSX.Element; //# sourceMappingURL=Form.client.d.ts.map