/** * Finds the closest parent of a specific type by traversing up the DOM tree. * * @param node - The starting node to search from. * @param constructor - The constructor of the desired element type (e.g., MyParentComponent). * @returns The matching element or null if not found. */ export declare function getParentComponent(node: Node, constructor: { new (...args: any[]): T; }): T | null;