export type ValidationFunction<T> = (value: T) => boolean;
/**
 * A custom hook that provides a state with validation.
 *
 * @param validationFn The function used to validate the state value.
 * @param initialValue The initial value of the state.
 *
 * @returns A tuple containing the state value, a function to update the state
 *          with validation, and a boolean indicating whether the current state value is valid.
 */
declare const useStateWithValidation: <T>(validationFn: ValidationFunction<T>, initialValue: T) => readonly [T, (nextState: T | ((prevState: T) => T)) => void, boolean];
export default useStateWithValidation;
