/** * Splits the texts into parts and identifies parts that match some * anonymization pattern * * @param {string} value * @param {Array} hint - Array of preferred anonymization patterns * Sometimes values may match more anonymization patterns; in the parameter * hint we may specify the order in which the anonymization patterns are * tested, e. g. ['EMAIL', 'PHONE'] * It is not necessary to list all supported types - types not listed in hint * will be applied after the types listed in hint * Less strict patterns are applied to hinted-types than to non-hinted types * When hint includes 'SKIP', the value is not anonymized * @returns {Array} - Every element contains the following keys * value: string - the original value * type: string - identification of the recognized type * supported types are: * EMAIL * PHONE * BIRTH_CODE * ACCOUNT_NUMBER * ANY * the special value 'ANY' indicates that no pattern was recognized * (i. e. the value should not be anonymized) */ export function anonymizationSplitter(value: string, hint?: Array): Array; /** * Main function for anonymization. Check if input data includes sensetive data. * If so, returns anonymized version of input data * * @param {any} input * @returns {string} */ export function anonymizeData(input?: any): string; /** * @param {string} value * @returns {string} hashed value */ export function hashSensitiveValue(value: string): string;