import * as React from "react"; export interface DurationInputProps { disabled?: boolean; /** * a duration in minutes */ value?: string | number; /** * a duration in minutes */ defaultValue?: number; name: string; onBlur?: (evt: any) => void; onChange?: (evt: { target: { name: string; value: number; }; }) => void; error?: string; dayText?: string; hourText?: string; minuteText?: string; } interface State { hours: string; days: string; minutes: string; value: number; } /** * An element which takes a value in the form of a total time in minutes and renders an input with hours, minutes and days. This component renders three inputs all controlled by the same value prop, which is the total time in minutes. The change event returns the updated value of the total time in minutes. */ export declare class DurationInput extends React.Component { static defaultProps: { dayText: string; hourText: string; minuteText: string; }; static getDerivedStateFromProps(props: DurationInputProps, state: State): { value: number; hours: string; minutes: string; days: string; } | { value: number; hours?: undefined; minutes?: undefined; days?: undefined; }; constructor(props: DurationInputProps); onBlur(evt: any): void; onChange(evt: { target: { value: string; name: string; }; }): void; render(): JSX.Element; } export default DurationInput;