The extern functionality in Haxe provides a way of declaring type signatures for native Lua libraries.