import type { DatabaseHandle } from './db.js'; /** * Fetch the last-seen mtime for a vault-relative path, or undefined if the * path has never been indexed. */ export declare function getSyncMtime(db: DatabaseHandle, path: string): number | undefined; /** * Record that `path` was indexed at mtime `mtime`. `indexedAt` defaults to * Date.now() if omitted — callers that run batch jobs can pin a single * indexed_at across many rows. */ export declare function setSyncMtime(db: DatabaseHandle, path: string, mtime: number, indexedAt?: number): void; /** * Every path currently tracked in sync state. Used by the pipeline to detect * deletions (paths present in the DB but no longer on disk). */ export declare function getAllSyncPaths(db: DatabaseHandle): string[]; /** * Remove the sync row for `path`. Called when a file is deleted from the vault. */ export declare function deleteSyncPath(db: DatabaseHandle, path: string): void;