pub fn export_sync_state(state: &SyncState) -> JsValue