import { Interpreter } from "../interpreter/interpreter"; import { ExecutionMode, Operator } from "../types"; /** * Description: Read line and split it into words * - ignore comments, keep only part that is relevant to interpreter * @param line : Line read from TEAL file */ export declare function wordsFromLine(line: string): string[]; /** * Description: Returns Opcode object for given field * NOTE: we are also calculating the gas cost associated with each opcode, * and throwing error if the total gas of TEAL code exceeds the max gas cost for * respective execution modes * @param words : words extracted from line * @param counter: line number in TEAL file * @param interpreter: interpreter object */ export declare function opcodeFromSentence(words: string[], counter: number, interpreter: Interpreter): Operator; /** * Description: Returns a list of Opcodes object after reading text from given TEAL file * @param program : TEAL code as string * @param mode : execution mode of TEAL code (Stateless or Application) * @param interpreter: interpreter object */ export declare function parser(program: string, mode: ExecutionMode, interpreter: Interpreter): Operator[];