UNPKG

clvm

Version:

Javascript implementation of chia lisp

8 lines (7 loc) 480 B
import { CastableType, SExp } from "./SExp"; import { Bytes, Tuple } from "./__type_compatibility__"; export type TOpStack = Array<(op_stack: TOpStack, val_stack: TValStack) => unknown>; export type TValStack = Array<Bytes | SExp | SExp[] | Tuple<SExp, SExp>>; export type TToSexpF = (arg: CastableType) => SExp; export type TToJavascript = Bytes | Bytes[] | Tuple<TToJavascript, TToJavascript> | TToJavascript[]; export declare function as_javascript(sexp: SExp): TToJavascript;