export interface IReplaceParams { [key: string]: any; } /** * Apply phone code into phone number * @param {string} phoneNumber Phone number * @param {string} phoneCode Phone code * @return {string} Phone number with phone code */ declare function internationalPhoneNumber(phoneNumber: string, countryCode: string): string; /** * Apply phone code into phone number * @param {string} phoneNumber Phone number * @param {string} phoneCode Phone code * @return {string} Phone number with phone code */ export declare function applyPhoneCode(phoneNumber: string, phoneCode: string): string; /** * Remove phone code from phone number * @param {string} phoneNumber International phone number * @param {string} countryCode Phone code * @return {string} Localized phone number */ declare function localePhoneNumber(phoneNumber: string, countryCode: string): string; /** * Check if string is empty * * @param {string} input Input string * * @return {boolean} */ declare function isEmpty(input: string): boolean; /** * Creates random string with base64 format * * @param {number} len the length of result string * * @return {string} random string */ declare function randomBase64(len: number): string; /** * Generate random string with limited character scope * * @param {number} len String length * @param {string} chars Character scope * * @return {string} Outputed random chars */ declare function randomChars(len: number, chars?: string): string; /** * Generate random number string * * @param {Integer} len String length * @param {String} chars Character scope * * @return {String} Outputed random number characters */ declare function randomNumberChars(len: number): string; /** * Generates random token * * @return {string} Random token string */ declare function generateRandomToken(): string; /** * Checks if input string is phone number * * @param {string} input Input string * @return {boolean} Is valid phone number */ declare function isPhoneNumber(input: string): boolean; /** * Check if input string is email * * @param {string} input Input string * * @return {boolean} Is valid email */ declare function isEmail(input: string): boolean; /** * Replaces list dictionary key => value with pattern * * @param {string} input Input text * @param {Object} params Key value params * * @return {string} Result output string */ declare function replaceParams(input: string, params: IReplaceParams): string; /** * Format number with mark character * * @param {number} input Number needs to be formated * @param {string} mark Decimal mark character * * @return {string} Formated input */ declare function formatNumber(input: number, mark: string): string; export { internationalPhoneNumber, localePhoneNumber, isEmpty, randomBase64, randomChars, randomNumberChars, generateRandomToken, isPhoneNumber, isEmail, replaceParams, formatNumber };