/** * https://github.com/Matt-Esch/string-template * @param {string} str * @param param * @return {string} * @example * ```js * greeting = stringFormat("Hello {name}, you have {count} unread messages", { * name: "Robert", * count: 12 * }) * // greeting -> "Hello Robert, you have 12 unread messages" * * // Format using a number indexed array * * greeting = stringFormat("Hello {0}, you have {1} unread messages", ["Robert", 12]) * // greeting -> "Hello Robert, you have 12 unread messages" * * // Format using optional arguments * * greeting = stringFormat("Hello {0}, you have {1} unread messages", * "Robert", * 12) * // greeting -> "Hello Robert, you have 12 unread messages" * * * // Escape {} pairs by using double {{}} * * var text = stringFormat("{{0}}") * // text -> "{0}" * ``` */ export interface IRegExpMatchArray extends Array { index: number; input: string; } export declare function stringFormat(str: string, ...param: Record[]): string; //# sourceMappingURL=stringFormat.d.ts.map