@mui/x-date-pickers
Version:
The community edition of the MUI X Date and Time Picker components.
11 lines • 1.08 kB
TypeScript
import type { MakeOptional } from '@mui/x-internals/types';
import type { PickerManager, DateValidationError } from "../models/index.js";
import type { UseFieldInternalProps } from "../internals/hooks/useField/index.js";
import type { ExportedValidateDateProps, ValidateDateProps } from "../validation/validateDate.js";
import type { PickerValue } from "../internals/models/index.js";
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 {};