Available on jvm
register(param1:WatchService, param2:NativeArray<WatchEvent_Kind<Dynamic>>, param3:Rest<WatchEvent_Modifier>):WatchKey
register(param1:WatchService, param2:Rest<WatchEvent_Kind<Dynamic>>):WatchKey