import type { ReactNode } from 'react'; import type { FieldOwnProps } from './Field'; /** * Resolves the id, validity and message of a form control from the shared * Field API: an `error` message replaces the description; `error={true}` * marks the control invalid and keeps the description. */ export declare function useField(idProp: string | undefined, { description, error }: Omit): { id: string; invalid: boolean; isError: boolean; message: ReactNode; messageId: string | undefined; };