Add type hints to `SyncHandler`.