/** * Checks if a time passed is a valid time. * This will validate for missing components, invalid hour or minute components. * EXAMPLE USE : const { message, propsInError } = validateTime('15:30') * * Note that an empty string is not considered invalid. You should use * validateRequired (Validate.required) for that sort of validation. * * @param {string} time time as a string * @returns an object with an error message and instructions for which parts of the time are in error * or undefined for both if the time is valid */ declare const validateTime: (time: any) => { message: undefined; propsInError: undefined; } | { message: string; propsInError: {}; }; export default validateTime;