import { IUtils } from '@date-io/core/IUtils'; // TODO: Maybe we should add the same constraint. // @ts-ignore TDate in our codebase does not have the `ExtendableDateType` constraint. export type MuiPickersAdapter = IUtils; export type MuiDateSectionName = 'day' | 'month' | 'year' | 'hour' | 'minute' | 'second' | 'am-pm'; export type MuiFormatTokenMap = { [formatToken: string]: MuiDateSectionName }; export interface MuiPickerFieldAdapter extends MuiPickersAdapter { formatTokenMap: MuiFormatTokenMap; expandFormat: (format: string) => string; }