/** * Splits text into sentence chunks. In this SDK it does no real splitting: * {@link SentenceChunker.chunk} returns `[text]` for non-empty input, `[]` otherwise. */ export declare class SentenceChunker { constructor(..._a: unknown[]); /** Returns `[text]` if `text` is non-empty, otherwise `[]`. */ chunk(text: string): string[]; /** Alias for {@link SentenceChunker.chunk}. */ call(text: string): string[]; } /** Async-iterable stream of sentence chunks. In this SDK it yields nothing. */ export declare class SentenceChunkStream { constructor(..._a: unknown[]); [Symbol.asyncIterator](): AsyncGenerator; } /** Buffered variant of {@link SentenceChunkStream}. Behaves identically here. */ export declare class BufferedSentenceChunkStream extends SentenceChunkStream { } /** Basic {@link SentenceChunker} variant. Behaves identically here. */ export declare class BasicSentenceChunker extends SentenceChunker { } /** Indic-language {@link SentenceChunker} variant. Behaves identically here. */ export declare class IndicSentenceChunker extends SentenceChunker { } /** Transliterates Indic scripts. In this SDK {@link IndicScriptTransliterator.transliterate} returns text unchanged. */ export declare class IndicScriptTransliterator { constructor(..._a: unknown[]); /** Returns `text` unchanged. */ transliterate(text: string, _targetScript?: string): string; } /** Filters/normalizes text before synthesis. In this SDK {@link TextFilter.filter} returns text unchanged. */ export declare class TextFilter { constructor(..._a: unknown[]); /** Returns `text` unchanged. */ filter(text: string): string; /** Alias for {@link TextFilter.filter}. */ call(text: string): string; } /** Basic {@link TextFilter} variant. Behaves identically here. */ export declare class BasicTextFilter extends TextFilter { } /** Hyphenates English words. In this SDK {@link EnglishHyphenator.hyphenate} returns the word unchanged. */ export declare class EnglishHyphenator { constructor(..._a: unknown[]); /** Returns `word` unchanged. */ hyphenate(word: string): string; } /** Hyphenate an English word. In this SDK it returns the word unchanged. */ export declare function hyphenateEnglish(word: string): string; /** Detect the script of `text`. In this SDK it always returns `'latin'`. */ export declare function detectScript(_text: string): string; /** Normalize a language code to its lowercase primary subtag (e.g. `'en-US'` -> `'en'`). Defaults to `'en'`. */ export declare function normalizeLangCode(code?: string | null): string; /** Pre-warm the tokenizer. No-op in this SDK. */ export declare function preWarmTokenizer(..._a: unknown[]): void; /** ISO codes of the Indic languages recognized by the text helpers. */ export declare const INDIC_LANGS: readonly string[];