package cc; import lua.Table; import haxe.Constraints; import haxe.extern.Rest; @:native("peripheral") extern class Peripheral { public static function isPresent(name: String): Bool; public static function getType(name: String): String; public static function getMethods(name: String): Table; public static function call(name: String, method: String, args: Rest): T; public static function wrap(name: String): T; public static function find(type: String, ?filter: (String, T) -> Bool): Table; public static function getNames(): Table; }