import type { ListFilter, Task, TaskListFs } from "../types.js"; export interface OrderedEntry { task: Task; raw: Record; } export declare function compareCreated(left: OrderedEntry, right: OrderedEntry): number; export declare function applyOrder(entries: OrderedEntry[], order: ListFilter["order"]): Task[]; export declare function hasErrorCode(error: unknown, code: string): boolean; export declare function isRecord(value: unknown): value is Record; export declare function sortStrings(values: string[]): string[]; export declare function sortTasks(tasks: Task[]): Task[]; export declare function isTrimmedPrintableIdentifier(value: string): boolean; export declare function validateTaskId(id: string): string; export declare function validateTaskName(name: string): string; export declare function statIfExists(fs: TaskListFs, filePath: string): Promise> | undefined>; export declare function rejectSymbolicLinkComponents(fs: TaskListFs, filePath: string): Promise; export declare function writeAtomically(fs: TaskListFs, filePath: string, content: string): Promise; export declare function withFileLock(fs: TaskListFs, lockPath: string, operation: () => Promise): Promise;