/**
 * @template T
 */
export class AbstractCachingParser<T> {
    /**
     * Parser cache
     * @type {Cache<string, T>}
     */
    __cache: Cache<string, T>;
    /**
     *
     * @param {string} code
     * @returns {T}
     * @private
     */
    private __invoke_parser;
    /**
     *
     * @param {string} code
     * @returns {T}
     */
    parse(code: string): T;
    /**
     *
     * @param {string} code
     * @param {function(e:Error)} [errorConsumer]
     */
    validate(code: string, errorConsumer?: typeof noop): boolean;
}
import { Cache } from "../../cache/Cache.js";
import { noop } from "../../function/noop.js";
//# sourceMappingURL=AbstractCachingParser.d.ts.map