import { Task } from "todo.json"; export declare function readTasks(dataPath: string): Task[]; export declare function writeTasks(dataPath: string, tasks: Task[]): void; export declare function appendTasks(dataPath: string, tasks: Task[]): number; export declare function maxWidth(tasks: { index: number; task: Task; }[], field: "contexts" | "projects" | "text" | "due"): number; export declare function colorTask(task: Task): "red" | "yellow" | "cyan" | null; export declare function urgency(task: Task): number; export declare function parseIds(ids: string[], maxId: number, onError: (msg: string) => void): number[]; export declare function filterByField(field: "projects" | "contexts", values: string[] | undefined, and: boolean, without: boolean): (task: Task) => boolean;