/** Breaking text into pieces for a local speech server, so a cancelled call * never holds the server for more than one piece. Copied from the Kokoro * package's textChunks.ts, which has the same need. */ /** `text` in pieces of at most `maxChars`. Pieces break between sentences. * A sentence longer than `maxChars` is split with `splitToFit`. */ export declare function sentencePieces(text: string, maxChars: number): string[]; /** A sentence split into pieces of at most `maxChars`. It splits at commas * first, then at spaces, then inside any word longer than `maxChars`. * Every character except whitespace is kept, in order. */ export declare function splitToFit(sentence: string, maxChars: number): string[];