function split(text) {
  const splitter = new TextSplitterStream();
  splitter.push(text);
  return [...splitter];
}
Splits the input text into an array of sentences.
@param {string} text The text to split.
@returns {string[]} An array of sentences.