/** * Returns closest parent element that is common for all needle elements. Returns `null` if no such element exists. */ export declare function getCommonParent(needle: Element[]): Element | null; /** * Yields all common parents of the needle, starting with the one closest to the needle. */ export declare function parentsGenerator(needle: Element[], root?: ParentNode): Generator; /** * Yields all parents of the needle that when used as a root for selector, will only match the needle. */ export declare function viableParentsGenerator(needle: Element[], needleSelector: string, root?: ParentNode): Generator; /** * Check whether needle selector within this parent will match only the needle. */ export declare function testParentCandidate(needle: Element, needleSelector: string, parent: ParentNode): boolean;