export type SyncStatePhase = 'initial' | 'not-in-sync' | 'pushing' | 'pulling' | 'in-sync' | 'error' | 'offline'; export type SyncStatus = 'not-started' | 'connecting' | 'connected' | 'disconnected' | 'error' | 'offline'; export interface SyncState { status: SyncStatus; phase: SyncStatePhase; progress?: number; error?: Error; license?: 'ok' | 'expired' | 'deactivated'; }