export declare class ParserError extends Error { message: string; fragment: string; constructor(message: string, fragment: string); } export declare type ParserCallback = (_: ParserError) => string; /** * Parses logic inside translations. * * @export */ export declare abstract class Parser { /** * Processes a string, isolating logic fragments and compiling them. * * @memberOf Parser */ compile: (text: string, parameters: any, error?: ParserCallback) => string; }