import { Option } from 'fp-ts/lib/Option'; export declare type TTimeInputValue = { hours: Option; minutes: Option; seconds: Option; periodType: Option; }; export declare enum PeriodType { AM = "AM", PM = "PM" } export declare enum Section { Hours = 0, Minutes = 1, Seconds = 2, PeriodType = 3 } export declare const MAX_VALID_MINS_AND_SEC = 59; export declare const MAX_VALID_HOURS_FOR_24H_FORMAT = 23; export declare const MAX_VALID_HOURS_FOR_12H_FORMAT = 12; export declare const EMPTY_SECTION = "--"; export declare const isTimesDifferent: (x: TTimeInputValue, y: TTimeInputValue) => boolean; export declare const formatNumericValue: (value: number) => string; export declare const formatTimePeriod: (periodType: PeriodType) => string; /** * Values can be zeros (start from 0). Max is included value. */ export declare function add(a: Option, b: number, max: number): Option; export declare function isDefined(value?: A): value is A; export declare function findActiveSectionOnKeyLeft(activeState?: Section, isSecondsExist?: boolean): Section; export declare function findActiveSectionOnKeyRight(activeSection?: Section, isSecondsExist?: boolean, isClockFormatExist?: boolean): Section; export declare function togglePeriodType(periodType: Option): Option; export declare const renderSection: (time: Option) => string;