UNPKG

clvm

Version:

Javascript implementation of chia lisp

24 lines (23 loc) 659 B
import { None, Optional } from "./__python_types__"; import { Bytes, Tuple } from "./__type_compatibility__"; export type CLVMType = { atom: Optional<Bytes>; pair: Optional<Tuple<any, any>>; }; export type Atom = { atom: Bytes; pair: None; }; export type Cons = { atom: None; pair: Tuple<any, any>; }; export declare class CLVMObject implements CLVMType { private readonly _atom; private readonly _pair; get atom(): Optional<Bytes>; get pair(): Optional<Tuple<any, any>>; constructor(v: any); } export declare function isAtom(obj: CLVMType): obj is Atom; export declare function isCons(obj: CLVMType): obj is Cons;