/** * Sync state tracking for auto-sync feature. * Stored in .dex/sync-state.json */ export interface SyncState { /** ISO timestamp of last successful sync */ lastSync: string | null; } /** * Get sync state from .dex/sync-state.json * Returns default state if file doesn't exist. */ export declare function getSyncState(storagePath: string): SyncState; /** * Update sync state after successful sync. * Creates the file if it doesn't exist. */ export declare function updateSyncState(storagePath: string, state: Partial): void; /** * Parse duration string to milliseconds. * Supports: "30s", "5m", "1h", "1d" * @returns milliseconds, or null if invalid format */ export declare function parseDuration(duration: string): number | null; /** * Check if sync is stale based on max_age. * Returns true if last sync exceeds max_age or if never synced. * Returns false if max_age is invalid. */ export declare function isSyncStale(storagePath: string, maxAge: string): boolean; //# sourceMappingURL=sync-state.d.ts.map