import { Chunk, FunctionExpression, MemberExpression, Node } from '../parser/ast'; export type ScopeObject = Record; export declare const nil: { toString: () => string; }; type Table = { [key: string]: Value; }; export type LuaTable = { [key: string]: LuaValue; }; export type Value = number | string | boolean | FunctionExpression | Table; export type LuaMultiValue = LuaValue[]; export type LuaValue = number | string | boolean | undefined | FunctionExpression | LuaTable | LuaMultiValue; export type Function = (args: Node[], scope: Scope) => AsyncGenerator; export type Scope = Record; export type Functions = Record AsyncGenerator>; export declare const data: Scope; export declare function parseMemberExpression(memberExpression: MemberExpression, scope: Scope): AsyncGenerator; export declare function evaluate(code: Chunk, methods?: Functions): AsyncGenerator; export {};