// Generated by scripts/generate-tsrx-types.mjs for the built package. /** * Detect text direction using the "first strong character" algorithm. * Strips common markdown syntax then finds the first Unicode letter * with strong directionality. * * Note: markdown stripping is best-effort — nested formatting, * multi-line fenced code blocks, and raw HTML are not fully handled. * This is acceptable since the algorithm only needs to reach the first * strong character, which is almost always in plain prose. * * @returns "rtl" if first strong char is RTL, "ltr" otherwise */ export declare function detectTextDirection(text: string): 'ltr' | 'rtl';