/** * @copyright Sister Software * @license AGPL-3.0 * @author Teffen Ellis, et al. */ import type { Alpha2LanguageCode } from "#resources/languages"; import { type TextNormalizerInit } from "#tokenization"; import { LocaleIndex } from "./LocaleIndex.ts"; export type LibPostalLanguageCode = Alpha2LanguageCode | "all"; /** * Languages with a libpostal dictionary directory on disk. Lazily resolved and memoized — this was a top-level `await` * until #481, which made any bare-import + subpath-import combination a TLA cycle under Vite's loader (base classes at * the far side of the barrel evaluated as `undefined`). The promise is shared, so concurrent first callers do one * `readdir`. */ export declare function getAvailableLanguages(): Promise; export interface LibPostalFileEntry { filePath: string; languageCode: LibPostalLanguageCode; } interface LibPostalNormalizerInit extends TextNormalizerInit { pluralize?: boolean; } /** * Load a dictionary file. */ export declare function prepareLocaleIndex( /** * An iterable of language codes */ languageCodes: LibPostalLanguageCode[] | undefined, filename: string, options?: LibPostalNormalizerInit): Promise>; /** * Generate plurals for the index. */ export declare function generatePlurals(index: LocaleIndex): void; export {}; //# sourceMappingURL=libpostal.d.ts.map