import { ComponentType, PuptElement, PuptNode } from '../types'; /** * Check if a PuptElement matches a given type (class reference or string name). * * @param element - The element to check * @param type - A component class/function reference, or a string name * @returns true if the element matches the given type */ export declare function isElementOfType(element: PuptElement, type: ComponentType | string): boolean; /** * Find all children that match a given type. * Searches through Fragments transparently. * * @param children - The children to search (PuptNode - can be array, element, string, etc.) * @param type - A component class/function reference, or a string name * @returns Array of matching PuptElements */ export declare function findChildrenOfType(children: PuptNode, type: ComponentType | string): PuptElement[]; /** * Partition children into two groups: those matching the type and the rest. * Unlike findChildrenOfType, this does not unwrap Fragments - it operates * on the direct children array. * * @param children - Array of children to partition * @param type - A component class/function reference, or a string name * @returns Tuple of [matching elements, non-matching nodes] */ export declare function partitionChildren(children: PuptNode[], type: ComponentType | string): [PuptElement[], PuptNode[]]; //# sourceMappingURL=children.d.ts.map