UNPKG

@mui/x-date-pickers

Version:

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

11 lines 1.06 kB
import type { MakeOptional } from '@mui/x-internals/types'; import { PickerManager, DateValidationError } from "../models/index.mjs"; import { UseFieldInternalProps } from "../internals/hooks/useField/index.mjs"; import { ExportedValidateDateProps, ValidateDateProps } from "../validation/validateDate.mjs"; import { PickerValue } from "../internals/models/index.mjs"; export declare function useDateManager(): UseDateManagerReturnValue; type SharedDateAndDateRangeValidationProps = 'disablePast' | 'disableFuture' | 'minDate' | 'maxDate'; export declare function useApplyDefaultValuesToDateValidationProps(props: Pick<ExportedValidateDateProps, SharedDateAndDateRangeValidationProps>): Pick<ValidateDateProps, SharedDateAndDateRangeValidationProps>; export type UseDateManagerReturnValue = PickerManager<PickerValue, DateValidationError, ValidateDateProps, DateManagerFieldInternalProps>; export interface DateManagerFieldInternalProps extends MakeOptional<UseFieldInternalProps<PickerValue, DateValidationError>, 'format'>, ExportedValidateDateProps {} export {};