import type { PathBuilderLike } from "path-ts"; /** * Whether `text` is non-empty and every character is hiragana or the prolonged-sound mark ー. */ export declare function isHiragana(text: string): boolean; /** * Whether `text` is non-empty and holds neither kana nor ASCII. */ export declare function isKanjiName(text: string): boolean; /** * The kana stem of a kanji name: its shortest all-hiragana variant, less the * generic's reading when it ends with one (とっとりし for 鳥取市 becomes とっとり), or `null` * when the name already holds hiragana or has no reading. */ export declare function pickKanaStem(official: string, variants: Iterable): string | null; /** * Each kanji municipality name mapped to its kana surface, from the JP localities, * localadmins, counties and boroughs in a WOF admin database. * * WOF may store a city's preferred name without its generic (鳥取) and list the generic form * as a variant, so every kanji name of a place that ends with a generic becomes a key. * The reading covers the shortest generic name (北区), and a longer one keeps its * extra prefix in kanji, so 大阪市北区 becomes 大阪市きた区. * * @throws When the database is missing, naming it. */ export declare function municipalityKanaFromAdminDB(path: PathBuilderLike): Promise>; /** * The kana surface of a corpus municipality, retrying without a county prefix (中新川郡上市町 as 上市町), or `null`. */ export declare function municipalityKanaLookup(kanaByMunicipality: ReadonlyMap, municipality: string): string | null; //# sourceMappingURL=kana.d.ts.map