/** * Strip diacritics from a string, reproducing V8's * s.normalize('NFD').replace(/[̀-ͯ]/g, '') * for every accented letter in every script (Latin, Greek, Cyrillic, Vietnamese, * …) WITHOUT calling `String.prototype.normalize` — QuickJS (the runtime Javy * compiles to WASM) doesn't implement `normalize` at all, so relying on it would * make the WASM build diverge from the JS build on any accented title (e.g. * "Hôtel", "Rêves", "Ολυμπιάδα"). The folding table in `./diacritics.ts` is * generated from V8's NFD (scripts/gen-diacritics.mjs), so both engines fold * identically. The trailing regex also removes any already-decomposed standalone * combining marks (U+0300–U+036F), which works in both engines. */ export declare function foldDiacritics(input: string): string; /** * Remove and strip separators from inputString (but keep ',;' characters). * Also keeps separators for single characters (e.g., S.H.I.E.L.D.). */ export declare function cleanup(inputString: string): string; /** * Strip separator characters from both ends of the string. */ export declare function strip(inputString: string, chars?: string): string; /** * Cleanup a raw value to perform raw comparison. */ export declare function rawCleanup(raw: string): string; /** * Reorder the title by moving a trailing article to the front. * "The Dark Knight, The" → "The Dark Knight" * Also handles moving leading article to end: not the primary direction in Python. * Python's reorder_title moves "title, the" patterns to canonical form. */ export declare function reorderTitle(title: string, articles?: string[], separators?: string[]): string;