import { PathBuilder } from "path-ts"; import { type CorpusAdapter } from "#types"; /** * The source ID on rows from this adapter. */ export declare const GEONAMES_ADAPTER_ID = "geonames"; /** * The license on rows from this adapter. */ export declare const GEONAMES_DEFAULT_LICENSE = "CC-BY-4.0"; /** * Zero-based column indices in a GeoNames main-table dump. */ export declare const GEONAMES_MAIN_COLUMNS: { readonly geonameid: 0; readonly name: 1; readonly asciiname: 2; readonly alternatenames: 3; readonly latitude: 4; readonly longitude: 5; readonly featureClass: 6; readonly featureCode: 7; readonly country: 8; readonly admin1: 10; readonly population: 14; }; /** * Loads region names keyed by `.`. * Returns an empty map when the file is missing. */ export declare function loadAdmin1(dir: PathBuilder): Promise>; /** * Loads country names keyed by ISO code. * Returns an empty map when the file is missing. */ export declare function loadCountries(dir: PathBuilder): Promise>; /** * Creates the GeoNames populated-place adapter. */ export declare function createGeonamesAdapter(): CorpusAdapter; /** * The adapter instance registered with the corpus builder. */ export declare const geonamesAdapter: CorpusAdapter; //# sourceMappingURL=adapter.d.ts.map