import 'ses'; /** * Check if the given string is a template string. * @param str - The string to check * @returns True if the string is a template string, false otherwise */ export declare function isTemplateString(str: string): boolean; /** * Find all the matches on the given string for a template string. * e.g.: * getTemplateMatches('<%= some.val %>-<%- another.val %>') // ['<%= some.val %>', '<%- another.val %>'] */ export declare function getTemplateMatches(str: string, includeTags?: boolean): string[]; /** * Lodash template function wrapper. * It adds a fuzzy search for the keys in the data object in case the user made a typo. */ export declare function renderTemplate(templateStr: string, templateContext?: any, safeContext?: boolean): string; /** * Executes a template string in a SES secure compartment. * @param templateStr - The template string to evaluate * @param context - The template context object, includes the variables to be used in the template * @returns The evaluated result */ export declare function template(templateStr: string, templateContext?: Record, safeContext?: boolean): any; export declare class TemplateValidationError extends Error { constructor(message: string); } /** * Validate the given template string. * @param templateStr - The template string to validate * @throws {TemplateValidationError} If given template string is invalid */ export declare function validateTemplate(templateStr: string, allowedKeywords?: string[]): undefined; //# sourceMappingURL=template.d.ts.map