export interface ITimeInputHookProps { defaultValue?: Date; value?: Date; type: 'hour' | 'minute'; onChange?: (value: Date) => void; } /** * A Hook to manage the Time Component that can be used for Hour or Minute * handlePrev & handleNext function are use to subtract and add one unit of time respectively. * currentValue throws the latest Value, * handleInput is used to directly change the input box, */ declare const useTime: ({ defaultValue, value, type, onChange }: ITimeInputHookProps) => { currentValue: Date; handleInput: (e: any) => void; handleNext: () => void; handlePrev: () => void; }; export default useTime;