//! `packages/lexical-text/src/isRootTextContentEmpty.ts`.
use root_text_content;
use crateis_js_whitespace;
/// `$isRootTextContentEmpty(isEditorComposing, trim)`: whether the root has
/// no text, or only whitespace when `trim` (JS's default; `String#trim`'s
/// whitespace). `false` while composing.
/// `$isRootTextContentEmptyCurry(isEditorComposing, trim)`: a function that
/// runs [`is_root_text_content_empty`] with these arguments (JS's `trim`
/// left `undefined` is `true`).