Files
klz-cables.com/.pnpm-store/v10/files/d6/0b7a90855f9b4ae02721b6902289da5cb5dd845836be41a6028d5f3add8c27ff2844e75633fc1419bcf35a409f66956e46b182cdccef0256a78aa2cee926b9
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

40 lines
1.3 KiB
Plaintext

import * as Ast from './ast';
export { Ast };
export { parse, parse1 } from './parser';
/**
* Convert a selector AST back to a string representation.
*
* Note: formatting is not preserved in the AST.
*
* @param selector - A selector AST object.
*/
export declare function serialize(selector: Ast.Selector): string;
/**
* Modifies the given AST **in place** to have all internal arrays
* in a stable order. Returns the AST.
*
* Intended for consistent processing and normalized `serialize()` output.
*
* @param selector - A selector AST object.
*/
export declare function normalize(selector: Ast.Selector): Ast.Selector;
/**
* Compare selectors based on their specificity.
*
* Usable as a comparator for sorting.
*
* @param a - First selector.
* @param b - Second selector.
*/
export declare function compareSelectors(a: Ast.SimpleSelector | Ast.CompoundSelector, b: Ast.SimpleSelector | Ast.CompoundSelector): number;
/**
* Compare specificity values without reducing them
* as arbitrary base numbers.
*
* Usable as a comparator for sorting.
*
* @param a - First specificity value.
* @param b - Second specificity value.
*/
export declare function compareSpecificity(a: Ast.Specificity, b: Ast.Specificity): number;