r2-navigator-js
Version:
Readium 2 'navigator' for NodeJS (TypeScript)
12 lines (11 loc) • 425 B
TypeScript
export declare const FRAG_ID_CSS_SELECTOR = "r2-css-selector_";
export interface Options {
root: Element;
idName: (name: string) => boolean;
className: (name: string) => boolean;
tagName: (name: string) => boolean;
seedMinLength: number;
optimizedMinLength: number;
threshold: number;
}
export declare function uniqueCssSelector(input: Element, doc: Document, options?: Partial<Options>): string;