import React from 'react';
import { StationErrorStateType } from '../FormStation.models';
/**
 * Cares for showing (and removing) validation errors.
 * @param stationError the currently showing error
 * @param setStationError the setter for the currently showing error
 * @returns
 * `setValidationError` - call this method to set the validation error.
 * `validationWatcher` - place this JSX somewhere inside the <Formik /> component children.
 */
export declare function useValidationError(stationError: StationErrorStateType | undefined, setStationError: React.Dispatch<React.SetStateAction<StationErrorStateType | undefined>>): {
    setValidationError: () => void;
    validationWatcher: JSX.Element;
};
//# sourceMappingURL=useValidationError.d.ts.map