interface Template { (replacements: Record, str?: string): string; (replacements: Record): (str?: string) => string; } /** * Replaces string keywords with provided values * * @param {Object} replacements object with keywords and corresponding replacements * @param {String} str string with keywords in a correct format '%{keyword}' * @return {String} String with replaced keywords * @example * * template({ fruit: 'banana' }, 'Petya has a %{fruit}') // => Petya has a banana */ declare const _default: Template; export default _default;