export function findFirstDescedantNode(doc, predicate) {
    let found = null;
    doc.descendants((node, pos, parent, index) => {
        if (found)
            return false;
        if (predicate(node))
            found = { node, pos, parent, index };
        return true;
    });
    return found;
}
//# sourceMappingURL=descedants.js.map
