import { type Unit } from './dates.js'; import type { GanttModel, GanttTask } from './types.js'; export interface GanttDbOptions { warn?: (message: string) => void; } export declare function clock(now?: number | Date): number; export declare function parseDuration(str: string): [number, Unit]; export declare class GanttDb implements GanttModel { readonly type: 'gantt'; title: string | undefined; accTitle: string | undefined; accDescr: string | undefined; dateFormat: string; axisFormat: string; tickInterval: string | undefined; todayMarker: string; includes: string[]; excludes: string[]; inclusiveEndDates: boolean; topAxis: boolean; displayMode: string; weekday: string | undefined; weekend: string; sections: string[]; links: Map; tasks: GanttTask[]; private byId; private currentSection; private taskCount; private lastOrder; private lastTaskId; private options; private now; private work; private includeSet; private excludeSet; private excludedDays; private datedTokens; constructor(options?: GanttDbOptions); setDateFormat(txt: string): void; enableInclusiveEndDates(): void; TopAxis(): void; setAxisFormat(txt: string): void; setTickInterval(txt: string): void; setTodayMarker(txt: string): void; setIncludes(txt: string): void; setExcludes(txt: string): void; setWeekday(txt: string): void; setWeekend(startDay: string): void; setDiagramTitle(txt: string): void; setAccTitle(txt: string): void; setAccDescription(txt: string): void; addSection(txt: string): void; addTask(descr: string, dataStr: string): void; setLink(ids: string, link: string): void; setClickEvent(ids: string, _functionName: string, _functionArgs: string | null): void; setClass(ids: string, className: string): void; getTasks(now?: number | Date): GanttTask[]; isInvalidDate(date: Date): boolean; private spend; private parse; private today; private warn; private compileTasks; private compileTask; private references; private getStartDate; private checked; private getEndDate; private checkTaskDates; }