import * as d3 from "d3"; interface Times { x: number; time: string; } /** * * @param { Array } timeRange - 时间范围 * @param { Number } width - 宽度 * @param { Number } numCols - 列数 * @param { Number } gridSize - 每列像素 * @returns { Times[] | null } */ export declare function timeScaleGenerator(timeRange: [string, string], width: number, numCols: number, gridSize: number): { times: Times[]; parseTime: (dateString: string) => Date | null; formatTime: (date: Date) => string; timeScale?: d3.ScaleTime; } | null; export declare function filterMenuItemsByData(menuItems: any[], data: any[]): any[]; export declare function cutString(str: string, maxLength?: number): string; export {};