export declare const VERSION = "__VERSION__"; import { lua_State } from "fengari-web"; export declare function pushboolean(L: lua_State, b: boolean): void; export declare function pushnumber(L: lua_State, n: number): void; export declare function pushstring(L: lua_State, s: string): void; export declare function pusharray(L: lua_State, s: any[]): void; export declare function pushobject(L: lua_State, o: object): void; export declare function push(L: lua_State, o: any): void; export declare function getboolean(L: lua_State, i: number): boolean; export declare function getnumber(L: lua_State, i: number): number; export declare function getstring(L: lua_State, i: number): string; export declare function getobject(L: lua_State, i: number): any; export declare function gettable(L: lua_State, i: number): any; export declare function popstring(L: lua_State): string; export declare function pop(L: lua_State): any; export declare function get(L: lua_State, i: number): any; export declare function nargs(L: lua_State): number; export declare function getset(L: lua_State, h: string, a: number, b: number, get: () => number, set: () => void): (o: lua_State) => number; export declare function getset(L: lua_State, h: string, checkGet: (n: number) => boolean, checkSet: (n: number) => boolean, get: () => number, set: () => void): (o: lua_State) => number; export declare function nargsEquals(n: number): (n: number) => boolean; export declare function func(h: string, n: number, call: (L: lua_State) => number): (L: lua_State) => number; export declare function func(h: string, check: (n: number) => boolean, call: (L: lua_State) => number): (L: lua_State) => number; export declare function call(L: lua_State, name: string, ...args: any[]): void; export interface IVM { readonly luaState: lua_State; } /** * Options for initLua. */ export interface InitLuaOptions { globals?: { [key: string]: boolean | number | string | object; }; api?: { [key: string]: (o: lua_State) => number; }; path?: string; script?: string; } /** * Initialize a new Lua VM for running a script. * @param {InitLuaOptions} options - options for the VM * @returns {any} - new Lua VM */ export declare function initLua(options: InitLuaOptions): IVM | undefined;