import { IExpanded } from '../types/thai-address.d'; import { IProvince, IWord } from '../types/preprocess'; /** * This function processes a nested data structure of provinces, districts, and sub-districts, * and maps it to a flat structure containing expanded details of each sub-district with corresponding * postal codes and labels based on provided words. * * @param data - An array of provinces where each province contains an array of districts, * and each district contains an array of sub-districts. * @param words - An array of words used to map numeric indices in provinces, districts, * and sub-districts to human-readable names. * @param geos Optional 2D array of geo IDs, where each entry is an array of numbers representing * specific geographic identifiers (e.g., province, district, or sub-district) that * correspond to the locations in the data. These geo IDs can be used to filter or * match specific regions in the dataset. * * @returns An array of IExpanded objects, each containing: * - province name * - district name * - sub-district name * - postal code as a string */ export declare const preprocess: (data: IProvince[], words: string[], geos?: (number | boolean)[]) => IExpanded[]; /** * The `preprocess_word` function is used to transform word data from an `IWord` object * into an array of strings. It also allows for conditional processing based on whether * the transformation should be done for English or not (through the `eng` parameter). * * @param data The `IWord` object containing the word data to be processed. * @param eng A boolean flag that, if true, will process the data in English, otherwise it processes in Thai. * @returns An array of strings that have been processed and transformed. */ export declare const preprocess_word: (data: IWord, eng?: boolean) => string[];