import React from 'react'; import { NumberOrDate } from '../../types/general'; declare type BaseProps = { /** Externally controlled value. */ value?: M; /** Minimum allowed value (inclusive) */ minValue?: M; /** Maximum allowed value (inclusive) */ maxValue?: M; /** If true, warn about empty value. Default is false. */ required?: boolean; /** Optional validator function. Should return {validity: true, message: ''} if value is allowed. * If provided, minValue and maxValue and required will have no effect. */ validator?: (newValue?: NumberOrDate) => { validity: boolean; message: string; }; /** Function to invoke when value changes. */ onValueChange: (newValue?: NumberOrDate) => void; /** UI Label for the widget. Optional */ label?: string; /** Additional styles for component container. Optional. */ containerStyles?: React.CSSProperties; /** Do not flag up value range violations */ displayRangeViolationWarnings?: boolean; /** Disabled? Default is false */ disabled?: boolean; }; export declare type NumberInputProps = BaseProps; export declare function NumberInput(props: NumberInputProps): JSX.Element; export declare type DateInputProps = BaseProps; export declare function DateInput(props: DateInputProps): JSX.Element; export {}; //# sourceMappingURL=NumberAndDateInputs.d.ts.map