/**
 * Implements querySelector functionality using the shared internal logic.
 * Supports the same selectors as querySelectorAll but returns only the first match.
 *
 * @param {Node} node - The Node which is the root of the tree to query.
 * @param {string} selectors - The CSS selector to match elements against.
 * @returns {Element | null} - The first Element which matches the selector, or null.
 */
export declare function querySelector(node: Node, selectors: string): Element | null;
/**
 * Implements querySelectorAll functionality using the shared internal logic.
 * Supports :scope pseudo-selector, direct child selectors, and common CSS selectors.
 *
 * @param {Node} node - The Node which is the root of the tree to query.
 * @param {string} selector - The CSS selector to match elements against.
 * @returns {Element[]} - Array of Elements matching the selector.
 */
export declare function querySelectorAll(node: Node, selector: string): Element[];
