UNPKG

@jackdbd/eleventy-plugin-text-to-speech

Version:
29 lines 1.21 kB
import type { JSDOM } from 'jsdom'; interface CssSelectorConfig { dom: JSDOM; selector: string; shouldThrowWhenNoMatches?: boolean; } export declare const cssSelectorMatchesToTexts: ({ dom, selector, shouldThrowWhenNoMatches }: CssSelectorConfig) => string[]; interface XPathExpressionConfig { dom: JSDOM; expression: string; shouldThrowWhenNoMatches?: boolean; } export declare const xPathExpressionMatchesToTexts: ({ dom, expression, shouldThrowWhenNoMatches }: XPathExpressionConfig) => string[]; export declare const defaultAudioInnerHTML: (hrefs: string[]) => string; interface MatchConfig { dom: JSDOM; hrefs: string[][]; audioInnerHTML: (hrefs: string[]) => string; } interface CssSelectorMatchConfig extends MatchConfig { cssSelector: string; } export declare const insertAudioPlayersMatchingCssSelector: ({ audioInnerHTML, cssSelector, dom, hrefs }: CssSelectorMatchConfig) => void; interface XPathExpressionMatchConfig extends MatchConfig { expression: string; } export declare const insertAudioPlayersMatchingXPathExpression: ({ audioInnerHTML, dom, expression, hrefs }: XPathExpressionMatchConfig) => void; export {}; //# sourceMappingURL=dom.d.ts.map