import * as React from "react"; import type { ValidationTrigger } from "./useFieldValidator"; export type UseUncontrolledValidatedInputProps = { value?: string | number | Array; disabled?: boolean; onChange?: (value: TValue) => void; onError?: (error: string | null) => void; validate: (value: TValue, trigger?: ValidationTrigger) => string | null; count?: number; }; /** * Handles: * - Uncontrolled input * - Validation * - Error sync */ export declare function useUncontrolledValidatedInput({ value, disabled, onChange, onError, validate, count }: UseUncontrolledValidatedInputProps): { inputRef: React.MutableRefObject; getInputRef: (index?: number) => (el: T | null) => void; error: string | null; handleChange: (e: React.ChangeEvent) => void; getHandleChange: (index?: number) => (e: React.ChangeEvent) => void; handleBlur: () => void; getHandleBlur: (index?: number) => () => void; }; //# sourceMappingURL=useUncontrolledValidatedInput.d.ts.map