/** * NFC with every whitespace character removed, interior included, because no CJK * address component holds an interior space. * * It is the join key the KEN_ALL probe and the TW builder use. */ export declare function normalizeCJKText(text: string): string; /** * Full-width numerals folded to ASCII, every other character kept. */ export declare function asciiDigits(text: string): string; /** * ASCII numerals rendered full width, the register a TW source writes numerals in. */ export declare function fullwidthDigits(text: string): string; /** * Bytes decoded as CPython's `cp932` codec decodes them, the encoding of Japan Post's KEN_ALL files. */ export declare function decodeCP932(bytes: Uint8Array): string; /** * Half-width katakana (U+FF61–FF9F) folded to full width, with the dakuten composed. * * Only those characters are folded, because NFKC would also fold full-width digits to ASCII. * The fold changes the length (`デ` becomes `デ`), so it runs on field values * before their spans are recorded. */ export declare function foldHalfwidthKana(text: string): string; /** * A Japanese numeral in either register as an integer, or `null` when the text isn't one. * * It reads bare digits (ASCII or full width), the digit-string kanji register (`〇一二`), * and the positional kanji register up to 百 (`二十三`). */ export declare function kanjiToInt(text: string): number | null; /** * An integer in the positional kanji register, the register the sources' 丁目 use. * * @throws When `value` is negative. */ export declare function intToKanji(value: number): string; //# sourceMappingURL=text.d.ts.map