/** * @internal * Skip a node when any of following conditions are true * - it is neither Element nor Text * - it is a text node but is empty * - it is a text node but contains just CRLF (noisy text node that often comes in-between elements) * - has a display:none * - it is just
* @param node The node to check * @param ignoreSpace (Optional) True to ignore pure space text node of the node when check. * If the value of a node value is only space, set this to true will treat this node can be skipped. * Default value is false */ export default function shouldSkipNode(node: Node, ignoreSpace?: boolean): boolean;