import type { QueryParams, StringTemplateArgs } from '../types'; /** * Formats text with arguments. * @param sTemplate - sTemplate * @param args - Accepts either an object with keys or the arguments will be indexed. * */ declare function format(sTemplate: string, args: Record): string; declare function format(sTemplate: string, ...args: Array): string; /** * Returns true if the string starts with the needle. * @param haystack - haystack * @param needle - needle * @param isCaseSensitive - (optional) Whether it is case sensitive. Use false to make insensitive. Default = true */ declare function startsWith(haystack: string, needle: string, isCaseSensitive?: boolean): boolean; /** * Returns true if the string ends with the needle. * @param haystack - haystack * @param needle - needle * @param isCaseSensitive - (optional) Whether it is case sensitive. Use false to make insensitive. Default = true */ declare function endsWith(haystack: string, needle: string, isCaseSensitive?: boolean): boolean; /** * Creates a new string that has the input string in a number of times * @param inputString - The string to repeat * @param count - The number of times to repeat * @example * var out = multiply("*", 2); * // out === "**" */ declare function multiply(inputString: string, count: number): string; /** * Pads the left side of a string with a character. The string is padded only if * it is shorter than the required output length. * @param value - The string to pad * @param length - The required output length * @param padChar - The character to use for padding * @example * var out = padLeft("1", 3, "0"); * // out === "001" */ declare function padLeft(value: string, length: number, padChar: string): string; /** * Formats text with arguments for a URL. All data arguments are uri encoded. * @param urlTemplate - urlTemplate * @param templateArgs - (optional) Accepts either an object with keys or the arguments will be indexed. * @param queryParams - (optional) query params as an object that will be added to the URL e.g. `{a:1} => ?a=1` * */ declare function formatUrl(urlTemplate: string, templateArgs?: StringTemplateArgs, queryParams?: QueryParams | null): string; export { format, formatUrl, startsWith, endsWith, multiply, padLeft };