/** * Transliterates unicode characters to their best ASCII representation * @public * @example Transliterate `άνθρωποι` to `anthropoi` * fn((state) => { * const s = util.toUTF8("άνθρωποι"); * console.log(s); // anthropoi * return state; * }); * @param {string} input - A string with unicode characters * @returns {string} - ASCII representation of input string */ export function toUTF8(input: string): string; export function formatResults(input: any): { success: any; errors: any; completed: any[]; }; /** * Removes nesting from an array of objects. * - Each object in the array is flattened to have dot-separated keys. * - Throws an error if the input is not an array or if a nested object exceeds two levels deep. * * @param {Array} input - An array of objects to flatten. * @returns {Array} - An array of flattened objects. * @throws {Error} - Throws an error if the input is not an array of objects or if nesting exceeds two levels. */ export function removeNestings(input: Array): Array; /** * Asserts that no keys in the input object or array of objects contain dots ('.'). * Throws an error if a key containing a dot is found. * * @param {Object|Array} input - The object or array of objects to validate. * @throws {Error} - Throws an error if a key containing a dot is found or if the input is invalid. */ export function assertNoNesting(input: any | Array): void; export function loadAnyAscii(state: any): Promise;