import { HDict } from 'haystack-core'; export declare const REG_EXPR_MATCHING_TEMPLATE: RegExp; /** * Replaces variables (defined as {{parameterName}}) in an expression with the values given in the parameters dict. * The HVal.toAxon function is used for conversion to a string. Optional parameters can be marked using a '?' * after the parameter name. They can safely be omitted in the parameters Dict. * @example * resolveTemplatedExpression("func({{num}})", HDict.make({num: HNum.make(22)})) => "func(22)" * @example * resolveTemplatedExpression("func({{num}}, {{unit?}})", HDict.make({num: HNum.make(22)})) => "func(22, null)" * @param expr the axon expression * @param params the parameters expressed as dict * @returns the axon expression resolved with the specified params */ export declare const resolveTemplateExpression: (expr: string, parameters?: HDict) => string; /** * Replaces template variable found in the given string using a given replacer function * @param templateString * @param replacer * @returns a new string containing the compiled template string */ export declare const replaceTemplateVariables: (templateString: string, replacer: (substring: string, match: string, optional: string) => string) => string;