import { whitespace } from "../hast-util-whitespace/lib-index.js";
const siblingAfter = siblings(1);
const siblingBefore = siblings(-1);
const emptyChildren = [];
function siblings(increment) {
  return sibling;
  function sibling(parent, index, includeWhitespace) {
    const siblings2 = parent ? parent.children : emptyChildren;
    let offset = (index || 0) + increment;
    let next = siblings2[offset];
    if (!includeWhitespace) {
      while (next && whitespace(next)) {
        offset += increment;
        next = siblings2[offset];
      }
    }
    return next;
  }
}
export {
  siblingAfter,
  siblingBefore
};
//# sourceMappingURL=lib-omission-util-siblings.js.map
