import React, { RefObject } from 'react'; import { InputTime, TestProps } from '../../types'; import './timeInput.less'; declare type TimeInputChangeFunc = (time: Partial | undefined, isValidTime: boolean) => void; export declare type TimeInputLayout = 'vertical' | 'horizontal'; export interface TimeInputRefProps { refs?: { hours?: RefObject; minutes?: RefObject; }; } export interface TimeInputLayoutProps { direction?: TimeInputLayout; compact?: boolean; justifyContent?: 'left' | 'center' | 'right'; placeholders?: { hours: string; minutes: string; }; } interface TimeInputProps extends TimeInputLayoutProps, TestProps, TimeInputRefProps { time?: InputTime | Partial | undefined; maxHours?: number; maxMinutes?: number; className?: string; disabled?: boolean; description?: React.ReactNode; onChange: TimeInputChangeFunc; } export declare const isValidTime: (time: Partial) => time is InputTime; declare const TimeInput: React.FunctionComponent; export default TimeInput;