UNPKG

netscape-bookmark-parser

Version:

A TypeScript/JavaScript library for parsing browser bookmark files (HTML format) and manipulating them as structured data. Compatible with both Deno and Node.js runtimes.

16 lines 878 B
import type { Element } from "../element.js"; import type { Document } from "../document.js"; export type Selector = (doc: Document) => { first(selector: string, context: Element | Document, callback?: (element: Element) => void): Element | null; match(selector: string, context: Element | Document, callback?: (element: Element) => void): boolean; select(selector: string, context: Element | Document, callback?: (element: Element) => void): Element[]; }; export type SelectorApi = ReturnType<Selector>; export declare function getSelectorEngine(): Selector; /** * Explicitly disable querySelector/All code generation with the `Function` * constructor forcing the Sizzle engine. Enables those APIs on platforms * like Deno Deploy that don't allow code generation. */ export declare function disableCodeGeneration(): void; //# sourceMappingURL=selectors.d.ts.map