import * as React from 'react'; import { LocalizedComponent } from '../locales'; import { DefaultizedProps, BaseDateValidationProps, BasePickerInputProps, PickerViewRendererLookup, BaseClockProps, DesktopOnlyTimePickerProps, TimeViewWithMeridiem, UseViewsOptions, DateTimeValidationProps, DateOrTimeViewWithMeridiem } from '../internals'; import { PickerValidDate } from '../models'; import { TimeViewRendererProps } from '../timeViewRenderers'; import { DigitalClockSlots, DigitalClockSlotProps } from '../DigitalClock'; import { MultiSectionDigitalClockSlots, MultiSectionDigitalClockSlotProps } from '../MultiSectionDigitalClock'; import { DateRange, DateTimeRangeValidationError } from '../models'; import { DateTimeRangePickerView, DateTimeRangePickerViewExternal } from '../internals/models'; import { DateRangeCalendarSlots, DateRangeCalendarSlotProps, ExportedDateRangeCalendarProps } from '../DateRangeCalendar'; import { DateTimeRangePickerToolbarProps, ExportedDateTimeRangePickerToolbarProps } from './DateTimeRangePickerToolbar'; import { DateRangeViewRendererProps } from '../dateRangeViewRenderers'; import { DateTimeRangePickerTabsProps, ExportedDateTimeRangePickerTabsProps } from './DateTimeRangePickerTabs'; export interface BaseDateTimeRangePickerSlots extends DateRangeCalendarSlots, DigitalClockSlots, MultiSectionDigitalClockSlots { /** * Tabs enabling toggling between date and time pickers. * @default DateTimeRangePickerTabs */ tabs?: React.ElementType; /** * Custom component for the toolbar rendered above the views. * @default DateTimeRangePickerToolbar */ toolbar?: React.JSXElementConstructor>; } export interface BaseDateTimeRangePickerSlotProps extends DateRangeCalendarSlotProps, DigitalClockSlotProps, MultiSectionDigitalClockSlotProps { /** * Props passed down to the tabs component. */ tabs?: ExportedDateTimeRangePickerTabsProps; /** * Props passed down to the toolbar component. */ toolbar?: ExportedDateTimeRangePickerToolbarProps; } export type DateTimeRangePickerRenderers = PickerViewRendererLookup, TView, Omit, 'view' | 'slots' | 'slotProps'> & Omit>, 'view' | 'slots' | 'slotProps'> & { view: TView; }, TAdditionalProps>; export interface BaseDateTimeRangePickerProps extends Omit, TDate, DateTimeRangePickerView, DateTimeRangeValidationError>, 'orientation' | 'views' | 'openTo'>, ExportedDateRangeCalendarProps, BaseDateValidationProps, DesktopOnlyTimePickerProps, Partial, DateTimeRangePickerViewExternal>, 'openTo' | 'views'>>, DateTimeValidationProps { /** * Overridable component slots. * @default {} */ slots?: BaseDateTimeRangePickerSlots; /** * The props used for each component slot. * @default {} */ slotProps?: BaseDateTimeRangePickerSlotProps; /** * Define custom view renderers for each section. * If `null`, the section will only have field editing. * If `undefined`, internally defined view will be used. */ viewRenderers?: Partial>; } type UseDateTimeRangePickerDefaultizedProps> = LocalizedComponent>, 'views'>> & { shouldRenderTimeInASingleColumn: boolean; views: readonly DateTimeRangePickerView[]; }; export declare function useDateTimeRangePickerDefaultizedProps>(props: Props, name: string): UseDateTimeRangePickerDefaultizedProps; export {};