import * as dayjs from 'dayjs'; type NullableDate = Extract; export type NonNullableDate = Exclude; export type GetDayjsConfig = { date?: dayjs.ConfigType; utc?: boolean; formatOfDate?: string; returnDayjsIfConfigDateNotExist?: boolean; localeZone?: string; }; export type GetDayjsReturn = C extends undefined ? dayjs.Dayjs : C extends { returnDayjsIfConfigDateNotExist: true; } ? dayjs.Dayjs : C extends { date: NonNullableDate; } ? dayjs.Dayjs : C extends { date: NullableDate; } ? undefined : dayjs.Dayjs | undefined; export {};