UNPKG

ranui

Version:

A framework-agnostic Web Components UI library built on native custom elements, with TypeScript types, light/dark theming, SSR and PWA support.

5 lines (4 loc) 343 B
import type { DocumentFragmentMock, HTMLElementMock } from './mocks'; export type MockNode = HTMLElementMock | DocumentFragmentMock | string; export declare const matchSelector: (node: HTMLElementMock, selector: string) => boolean; export declare const collectMatches: (nodes: MockNode[], selector: string, result: HTMLElementMock[]) => void;