pub async fn sync( settings: &Settings, store: &impl Store, encryption_key: &[u8; 32], ) -> Result<(i64, Vec<RecordId>), SyncError>