Files
klz-cables.com/.pnpm-store/v10/files/8d/4d1af01804b8581a700a1d1300408ea186c1c11e70ee8298a97504c5b8a14542bd8a6617481b09969e666cfb37d18bcfbf3ed256d12cb3fe606632a8e3b97a
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

32 lines
1.5 KiB
Plaintext

/** Check if attribute name and value are word-like. */
export declare function attr(name: string, value: string): boolean;
/** Check if id name is word-like. */
export declare function idName(name: string): boolean;
/** Check if class name is word-like. */
export declare function className(name: string): boolean;
/** Check if tag name is word-like. */
export declare function tagName(name: string): boolean;
/** Configuration options for the finder. */
export type Options = {
/** The root element to start the search from. */
root: Element;
/** Function that determines if an id name may be used in a selector. */
idName: (name: string) => boolean;
/** Function that determines if a class name may be used in a selector. */
className: (name: string) => boolean;
/** Function that determines if a tag name may be used in a selector. */
tagName: (name: string) => boolean;
/** Function that determines if an attribute may be used in a selector. */
attr: (name: string, value: string) => boolean;
/** Timeout to search for a selector. */
timeoutMs: number;
/** Minimum length of levels in fining selector. */
seedMinLength: number;
/** Minimum length for optimising selector. */
optimizedMinLength: number;
/** Maximum number of path checks. */
maxNumberOfPathChecks: number;
};
/** Finds unique CSS selectors for the given element. */
export declare function finder(input: Element, options?: Partial<Options>): string;