import { FieldPath, FieldValues } from 'react-hook-form'; import { UseComposeClassNameProps, UseComposeHelperTextProps, UseComposeModifierStateProps, UseComposeStyleProps } from './internals'; import { UseFieldStateProps } from './use-field-state'; import type * as React from 'react'; /** * Type for the props of the `useFieldStateAdapter`. */ export interface UseFieldStateAdapterProps = FieldPath> extends UseFieldStateProps, Omit, Omit, Omit, Omit { } /** * Hook for creating a field state adapter. * * @param props - The props for the field state adapter. * @param [ref] - (Optional) ref for the field state adapter. * @returns The adapter object with the composed properties. */ export declare function useFieldStateAdapter = FieldPath, RefType = unknown>(props: UseFieldStateAdapterProps, ref?: React.Ref): { className: string | undefined; disabled: boolean; error: boolean; helperText: React.ReactNode; ref: React.Ref | undefined; style: React.CSSProperties | undefined; };