@mui/x-date-pickers
Version:
The community edition of the MUI X Date and Time Picker components.
13 lines • 1.22 kB
text/typescript
import type { MakeOptional } from '@mui/x-internals/types';
import { PickerManager, TimeValidationError } from "../models/index.mjs";
import { UseFieldInternalProps } from "../internals/hooks/useField/index.mjs";
import { AmPmProps } from "../internals/models/props/time.mjs";
import { ExportedValidateTimeProps, ValidateTimeProps } from "../validation/validateTime.mjs";
import { PickerValue } from "../internals/models/index.mjs";
export declare function useTimeManager(parameters?: UseTimeManagerParameters): UseTimeManagerReturnValue;
type SharedTimeAndTimeRangeValidationProps = 'disablePast' | 'disableFuture';
export declare function useApplyDefaultValuesToTimeValidationProps(props: Pick<ExportedValidateTimeProps, SharedTimeAndTimeRangeValidationProps>): Pick<ValidateTimeProps, SharedTimeAndTimeRangeValidationProps>;
export interface UseTimeManagerParameters extends AmPmProps {}
export type UseTimeManagerReturnValue = PickerManager<PickerValue, TimeValidationError, ValidateTimeProps, TimeManagerFieldInternalProps>;
export interface TimeManagerFieldInternalProps extends MakeOptional<UseFieldInternalProps<PickerValue, TimeValidationError>, 'format'>, ExportedValidateTimeProps, AmPmProps {}
export {};