import type { SyncConflict } from "./sync-types.js";
export declare const HOME: string;
export declare function getHomeDir(): string;
export declare function getTodosGlobalDir(): string;
export declare function ensureDir(dir: string): void;
export declare function listJsonFiles(dir: string): string[];
export declare function readJsonFile<T>(path: string): T | null;
export declare function writeJsonFile(path: string, data: unknown): void;
export declare function readHighWaterMark(dir: string): number;
export declare function writeHighWaterMark(dir: string, value: number): void;
export declare function getFileMtimeMs(path: string): number | null;
export declare function parseTimestamp(value: unknown): number | null;
export declare function appendSyncConflict(metadata: Record<string, unknown>, conflict: SyncConflict, limit?: number): Record<string, unknown>;
//# sourceMappingURL=sync-utils.d.ts.map