import { Instruction } from './instructions'; import { Opcode } from './opcodes'; export type ErrorType = 'parser' | 'assembler' | 'engine'; export interface TemplateError { type: ErrorType; message: string; } export declare const formatterUnknown: (name: string) => TemplateError; export declare const predicateUnknown: (name: string) => TemplateError; export declare const deadCode: (inst: Instruction) => TemplateError; export declare const eofInBlock: (inst: Instruction) => TemplateError; export declare const nonBlockState: (type: Opcode) => TemplateError; export declare const notAllowedInBlock: (inst: Instruction, parent: Instruction) => TemplateError; export declare const notAllowedAtRoot: (inst: Instruction | Opcode) => TemplateError; export declare const stateEOFNotReached: () => TemplateError; export declare const transitionFromEOF: (inst: Instruction | Opcode) => TemplateError; export declare const unclosed: (inst: Instruction) => TemplateError; export declare const rootPop: () => TemplateError; export declare const expressionParse: (expr: string, err: string) => TemplateError; export declare const expressionReduce: (expr: string, err: string) => TemplateError; export declare const partialMissing: (name: string) => TemplateError; export declare const partialParseFail: (name: string, msg: string) => TemplateError; export declare const partialRecursion: (name: string, limit: number) => TemplateError; export declare const unexpectedError: (type: string, opcode: string, message: string) => TemplateError;