UNPKG

1.15 kBTypeScriptView Raw
1import { Task, ViewMode } from "../types/public-types";
2import DateTimeFormatOptions = Intl.DateTimeFormatOptions;
3import DateTimeFormat = Intl.DateTimeFormat;
4declare type DateHelperScales = "year" | "month" | "day" | "hour" | "minute" | "second" | "millisecond";
5export declare const getCachedDateTimeFormat: (locString: string | string[], opts?: DateTimeFormatOptions) => DateTimeFormat;
6export declare const addToDate: (date: Date, quantity: number, scale: DateHelperScales) => Date;
7export declare const startOfDate: (date: Date, scale: DateHelperScales) => Date;
8export declare const ganttDateRange: (tasks: Task[], viewMode: ViewMode, preStepsCount: number) => Date[];
9export declare const seedDates: (startDate: Date, endDate: Date, viewMode: ViewMode) => Date[];
10export declare const getLocaleMonth: (date: Date, locale: string) => string;
11export declare const getLocalDayOfWeek: (date: Date, locale: string, format?: "long" | "short" | "narrow" | undefined) => string;
12export declare const getWeekNumberISO8601: (date: Date) => string;
13export declare const getDaysInMonth: (month: number, year: number) => number;
14export {};