import type { Hooks, Node, Token } from "./types";
import { CompileError } from "./types";
interface ParserOptions {
    hooks?: Hooks;
    maxIterations?: number;
    throwOnError?: boolean;
}
interface ParserResult {
    root: Node;
    errors: CompileError[];
}
export declare function lexify(expression: string): Token[];
export declare function parse(tokens: Token[], opts?: ParserOptions): ParserResult;
export {};
