pub async fn sync( settings: &Settings, store: &impl Store, ) -> Result<(i64, Vec<RecordId>), SyncError>