Getting the arguments of a function via code?

I have a library that uses a bunch of functions I know the names of, but does not list the arguments, I was wondering how I could get them? The source is compiled so that is not an option, but it is in lua.