UNPKG

@mui/x-date-pickers

Version:

The community edition of the MUI X Date and Time Picker components.

12 lines 1.3 kB
import type { MakeOptional } from '@mui/x-internals/types'; import type { PickerManager, DateTimeValidationError } from "../models/index.js"; import type { UseFieldInternalProps } from "../internals/hooks/useField/index.js"; import type { AmPmProps } from "../internals/models/props/time.js"; import type { ExportedValidateDateTimeProps, ValidateDateTimeProps } from "../validation/validateDateTime.js"; import type { PickerValue } from "../internals/models/index.js"; export declare function useDateTimeManager(): UseDateTimeManagerReturnValue; type SharedDateTimeAndDateTimeRangeValidationProps = 'disablePast' | 'disableFuture' | 'minTime' | 'maxTime' | 'minDate' | 'maxDate'; export declare function useApplyDefaultValuesToDateTimeValidationProps(props: Pick<ExportedValidateDateTimeProps, SharedDateTimeAndDateTimeRangeValidationProps | 'minDateTime' | 'maxDateTime'>): Pick<ValidateDateTimeProps, SharedDateTimeAndDateTimeRangeValidationProps>; export type UseDateTimeManagerReturnValue = PickerManager<PickerValue, DateTimeValidationError, ValidateDateTimeProps, DateTimeManagerFieldInternalProps>; export interface DateTimeManagerFieldInternalProps extends MakeOptional<UseFieldInternalProps<PickerValue, DateTimeValidationError>, 'format'>, ExportedValidateDateTimeProps, AmPmProps {} export {};