import { whitespace } from "../../../../hast-util-whitespace/lib/index.js";
const siblingAfter = siblings(1), siblingBefore = siblings(-1);
var emptyChildren = [];
function siblings(n) {
	return r;
	function r(r, i, a) {
		let o = r ? r.children : emptyChildren, s = (i || 0) + n, c = o[s];
		if (!a) for (; c && whitespace(c);) s += n, c = o[s];
		return c;
	}
}
export { siblingAfter, siblingBefore };
