/** An object with an hour and minute. */ export type Time = { hour: number; minute: number; }; /** * Returns a local time for a timetable block starting time, based on an input * string. Several formats are accepted, e.g. 24-hour strings, 12-hour strings, * and strings excluding the minutes value. Returns null if the string is not * an understood format. * @param input The input string. */ export declare function tryParseUserTimeString(input: string): Time | null; /** * Returns the given 12-hour formatted hour as a 24-hour formatted hour. Can * only be expected to return sensible results if the hour passed is an integer * between 1 and 12 (inclusive). * @param hour The 12-hour formatted hour. * @param half The half of the day (either "am" or "pm"). */ export declare function hour12To24(hour: number, half: "am" | "pm"): number; /** * Returns the given 24-hour formatted hour as a 12-hour formatted hour. Can * only be expected to return sensible results if the hour passed is an integer * between 0 and 23 (inclusive). * @param hour The 24-hour formatted hour. */ export declare function hour24To12(hour: number): { hour: number; half: "am" | "pm"; };