import { BaseError } from '@zetapush/common'; export declare class MissingKeyError extends BaseError { readonly key: string; readonly context: any; constructor(message: string, key: string, context: any, cause?: Error); } export declare class EvaluatorMissingKeyHandlerBuilder { private errorMsgBuilder?; private defaultValueBuilder?; /** * If a key is missing then generate an error message and throw an exception. * * @param message either a message or a function that provides a * message according to the key and the evaluation context */ error(message: string): this; error(messageProvider: (key: string, context: any) => string): this; /** * If a key is missing, then an empty string is used in place. */ ignore(): this; /** * If a key is missing then replace by a string value. * * @param value either a value or a function that provides a * value according to the key and the context. */ defaultValue(value: string): this; defaultValue(valueProvider: (key: string, context: any) => string): this; build(): (key: string, context: any) => string; } export declare const failOnMissingKeyHandler: (key: string, context: any) => string; export declare class VariableEvaluator { private missingKeyHandler; constructor(missingKeyHandler?: (key: string, context: any) => string); evaluate(str: string, context: any): string; }