UNPKG

@adguard/aglint

Version:

Universal adblock filter list linter.

13 lines (12 loc) 539 B
import { type CssTreeParsingContext, type CssTreeParsingContextToNode } from './css-tree-types'; /** * Helper function to parse CSS string into CSSTree node by using proper settings for the linter. * * @param rawCss Raw CSS string to parse. * @param context Parsing context. See {@link CssTreeParsingContext}. * * @returns The parsed CSS node. * * @throws SyntaxParseError if the CSS parsing fails. */ export declare const parseCss: <T extends CssTreeParsingContext>(rawCss: string, context: T) => CssTreeParsingContextToNode[T];