//#region src/utils/template-interpolation.d.ts /** * Interpolates a message template with placeholders from a payload object. * Supports {{path.to.value}} placeholder syntax with dot notation for nested paths. * Missing values are replaced with empty strings. * * @param template - Message template with {{placeholder}} syntax * @param payload - Object containing values to interpolate * @returns Interpolated message with all placeholders resolved * * @example * const template = "User {{user.name}} from {{user.profile.location}} submitted: {{message}}"; * const payload = { * user: { name: "Alice", profile: { location: "NYC" } }, * message: "Hello World" * }; * interpolateTemplate(template, payload); * // => "User Alice from NYC submitted: Hello World" */ declare function interpolateTemplate(template: string, payload: Record): string; //#endregion export { interpolateTemplate };