import React from 'react'; import type { FieldProps } from './FieldProps.js'; export type UseErrorStylesProps = Pick; /** * Adds styling to a field when an error is present. * * @remarks * * Mostly just a `useEffect` hook. * * `className` and `style` get swapped with `errorClassName` and `errorStyle` respectively * when an error's present (on the server or otherwise). */ export declare const useErrorStyles: ({ name, errorClassName, errorStyle, className, style, }: UseErrorStylesProps) => { className: string | undefined; style: React.CSSProperties | undefined; }; //# sourceMappingURL=useErrorStyles.d.ts.map