Defining interface and function types for interacting with the Lua state.