/** * #6966 — script-aware punctuation for the Authenticator delivery message. * * The delivery message is assembled from translated fragments joined by * punctuation. Hardcoding an ASCII period is wrong for locales whose sentence * terminator differs: Japanese/Chinese use the ideographic full stop `。` and * Thai writes no sentence terminator at all. The terminator and the * inter-sentence spacer are therefore derived from the script of the * surrounding translated copy, keeping punctuation locale-correct without * adding a translation key, interpolation, or any public API. * * Script detection is MAJORITY-based rather than "contains any": a sentence is * treated as CJK or Thai only when most of its non-whitespace characters belong * to that script. "Contains any" mis-classifies copy such as a Latin sentence * that includes a single CJK proper noun, or a Korean (Hangul) phrase that * happens to contain a stray CJK codepoint. */ /** * Appends the script-appropriate sentence terminator to `sentence` unless it is * already terminated. CJK copy receives the ideographic full stop `。`, Thai * copy is left untouched, and every other script receives an ASCII period. * * @internal Not exported from the `@aws-amplify/ui` public entry point. */ export declare const terminateSentence: (sentence: string) => string; /** * Returns the separator to place between two joined sentences. CJK scripts do * not separate sentences with a space; every other script does. * * @internal Not exported from the `@aws-amplify/ui` public entry point. */ export declare const getSentenceSpacer: (sentence: string) => string;