/** * @function stringTemplate Replace a string tempalate with given value if possible. * Example: * * const str = 'Selamat pagi, {name}. Hari ini {weather}!'; * const values = { * name: 'John', * weather: 'Cloudy', * }; * * const output = stringTemplate(str, values); * >> 'Selamat pagi, John. Hari ini Cloudy!' * * @param {string} template * @param {object} data * @returns {string} */ declare const stringTemplate: (template: string, data: object) => string; export default stringTemplate;