/** * APITable * Copyright (C) 2022 APITable Ltd. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ import { ILevel, ILevelResult, IResizeFormat } from './interface'; export declare const date2Month: (date: Date) => Date; export declare const resizeFormat: (resizeData: IResizeFormat) => { startDate: Date; endDate: Date; }; /** * Get the number of days in the current month * @param year * @param month */ export declare const daysInMonth: (year: number, month: number) => number; /** * Get the week of the first day of the current month * @param year * @param month */ export declare const firstDayOfMonth: (year: number, month: number) => number; export declare const formatDate: (year: number, month: number, lang: string) => string; /** * Get current calendar panel data * @param step */ export declare const getPanelData: (step: number) => { data: { day: number; month: number; }[]; year: number; month: number; }; export declare const isMouseEvent: (event: MouseEvent | TouchEvent) => event is MouseEvent; export declare const isTouchEvent: (event: MouseEvent | TouchEvent) => event is TouchEvent; export declare const getLevels: ({ week, year, tasks, resizeMsg }: ILevel) => ILevelResult[][]; export declare const formatDayValue: (month: number, day: number, lang?: 'en' | 'zh') => string; //# sourceMappingURL=utils.d.ts.map