import type { GlyphInfo } from "../../types.ts"; /** * Khmer character categories */ export declare enum KhmerCategory { Other = 0, Consonant = 1, IndependentVowel = 2, DependentVowel = 3, Coeng = 4,// Subscript sign (្) Register = 5,// Register shifters Robat = 6,// Consonant shifter (៌) Sign = 7, Anusvara = 8,// Nikahit (ំ) Visarga = 9 } /** * Get Khmer character category */ export declare function getKhmerCategory(cp: number): KhmerCategory; /** * Khmer feature masks */ export declare const KhmerFeatureMask: { readonly pref: 1; readonly blwf: 2; readonly abvf: 4; readonly pstf: 8; readonly cfar: 16; readonly pres: 32; readonly abvs: 64; readonly blws: 128; readonly psts: 256; readonly clig: 512; }; /** * Check if codepoint is Khmer */ export declare function isKhmer(cp: number): boolean; /** * Setup Khmer masks for feature application */ export declare function setupKhmerMasks(infos: GlyphInfo[]): void; /** * Reorder Khmer pre-base vowels * Pre-base vowels (◌េ ◌ែ ◌ៃ) should visually appear before the base */ export declare function reorderKhmer(infos: GlyphInfo[]): void;