@mui/x-date-pickers
Version:
The community edition of the MUI X Date and Time Picker components.
12 lines • 1.28 kB
TypeScript
import type { MakeOptional } from '@mui/x-internals/types';
import { PickerManager, DateTimeValidationError } from "../models/index.js";
import { UseFieldInternalProps } from "../internals/hooks/useField/index.js";
import { AmPmProps } from "../internals/models/props/time.js";
import { ExportedValidateDateTimeProps, ValidateDateTimeProps } from "../validation/validateDateTime.js";
import { 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 {};