declare const EXTENDED_CSS_VERSION: string; export { EXTENDED_CSS_VERSION }; export declare const BRACKET: { SQUARE: { LEFT: string; RIGHT: string; }; PARENTHESES: { LEFT: string; RIGHT: string; }; CURLY: { LEFT: string; RIGHT: string; }; }; export declare const SLASH = "/"; export declare const BACKSLASH = "\\"; export declare const SPACE = " "; export declare const COMMA = ","; export declare const DOT = "."; export declare const SEMICOLON = ";"; export declare const COLON = ":"; export declare const SINGLE_QUOTE = "'"; export declare const DOUBLE_QUOTE = "\""; export declare const CARET = "^"; export declare const DOLLAR_SIGN = "$"; export declare const EQUAL_SIGN = "="; export declare const TAB = "\t"; export declare const CARRIAGE_RETURN = "\r"; export declare const LINE_FEED = "\n"; export declare const FORM_FEED = "\f"; export declare const WHITE_SPACE_CHARACTERS: string[]; export declare const ASTERISK = "*"; export declare const ID_MARKER = "#"; export declare const CLASS_MARKER = "."; export declare const DESCENDANT_COMBINATOR = " "; export declare const CHILD_COMBINATOR = ">"; export declare const NEXT_SIBLING_COMBINATOR = "+"; export declare const SUBSEQUENT_SIBLING_COMBINATOR = "~"; export declare const COMBINATORS: string[]; export declare const SUPPORTED_SELECTOR_MARKS: string[]; /** * Limited list of available symbols before slash `/` * to check whether it is valid regexp pattern opening. */ export declare const POSSIBLE_MARKS_BEFORE_REGEXP: { COMMON: string[]; CONTAINS: string[]; }; export declare const SUPPORTED_STYLE_DECLARATION_MARKS: string[]; export declare const CONTAINS_PSEUDO = "contains"; export declare const HAS_TEXT_PSEUDO = "has-text"; export declare const ABP_CONTAINS_PSEUDO = "-abp-contains"; export declare const MATCHES_CSS_PSEUDO = "matches-css"; export declare const MATCHES_CSS_BEFORE_PSEUDO = "matches-css-before"; export declare const MATCHES_CSS_AFTER_PSEUDO = "matches-css-after"; export declare const MATCHES_ATTR_PSEUDO_CLASS_MARKER = "matches-attr"; export declare const MATCHES_PROPERTY_PSEUDO_CLASS_MARKER = "matches-property"; export declare const XPATH_PSEUDO_CLASS_MARKER = "xpath"; export declare const NTH_ANCESTOR_PSEUDO_CLASS_MARKER = "nth-ancestor"; export declare const CONTAINS_PSEUDO_NAMES: string[]; /** * Pseudo-class :upward() can get number or selector arg * and if the arg is selector it should be standard, not extended * so :upward pseudo-class is always absolute. */ export declare const UPWARD_PSEUDO_CLASS_MARKER = "upward"; /** * Pseudo-class `:remove()` and pseudo-property `remove` * are used for element actions, not for element selecting. * * Selector text should not contain the pseudo-class * so selector parser should consider it as invalid * and both are handled by stylesheet parser. */ export declare const REMOVE_PSEUDO_MARKER = "remove"; /** * Pseudo-classes `:remove-attr()` and `:remove-class()` are action operators: * they remove matching attributes or classes instead of selecting elements. * * Selector text should not contain these pseudo-classes, * so the selector parser considers them invalid, * and they are handled by the stylesheet parser. */ export declare const REMOVE_ATTR_PSEUDO_MARKER = "remove-attr"; export declare const REMOVE_CLASS_PSEUDO_MARKER = "remove-class"; /** * Action pseudo-class markers which are handled by the stylesheet parser * and should never reach the selector parser. */ export declare const ACTION_PSEUDO_MARKERS: readonly ["remove", "remove-attr", "remove-class"]; export type ActionPseudoMarker = typeof ACTION_PSEUDO_MARKERS[number]; /** * Action pseudo-class markers which are stored in rule styles * and are not CSS properties. */ export declare const ACTION_STYLE_MARKERS: readonly ["remove-attr", "remove-class"]; export type ActionStyleMarker = typeof ACTION_STYLE_MARKERS[number]; export declare const HAS_PSEUDO_CLASS_MARKER = "has"; export declare const ABP_HAS_PSEUDO_CLASS_MARKER = "-abp-has"; export declare const HAS_PSEUDO_CLASS_MARKERS: string[]; export declare const IS_PSEUDO_CLASS_MARKER = "is"; export declare const NOT_PSEUDO_CLASS_MARKER = "not"; export declare const EMPTY_TRIMMED_PSEUDO_CLASS_MARKER = "empty-trimmed"; export declare const STANDALONE_PSEUDO_CLASSES: string[]; export declare const ABSOLUTE_PSEUDO_CLASSES: string[]; export declare const RELATIVE_PSEUDO_CLASSES: string[]; export declare const SUPPORTED_PSEUDO_CLASSES: string[]; export declare const OPTIMIZATION_PSEUDO_CLASSES: string[]; /** * ':scope' is used for extended pseudo-class :has(), if-not(), :is() and :not(). */ export declare const SCOPE_CSS_PSEUDO_CLASS = ":scope"; /** * ':after' and ':before' are needed for :matches-css() pseudo-class * all other are needed for :has() limitation after regular pseudo-elements. * * @see {@link https://bugs.chromium.org/p/chromium/issues/detail?id=669058#c54} [case 3] */ export declare const REGULAR_PSEUDO_ELEMENTS: { AFTER: string; BACKDROP: string; BEFORE: string; CUE: string; CUE_REGION: string; FIRST_LETTER: string; FIRST_LINE: string; FILE_SELECTION_BUTTON: string; GRAMMAR_ERROR: string; MARKER: string; PART: string; PLACEHOLDER: string; SELECTION: string; SLOTTED: string; SPELLING_ERROR: string; TARGET_TEXT: string; }; export declare const AT_RULE_MARKER = "@"; export declare const CONTENT_CSS_PROPERTY = "content"; export declare const PSEUDO_PROPERTY_POSITIVE_VALUE = "true"; export declare const DEBUG_PSEUDO_PROPERTY_GLOBAL_VALUE = "global"; export declare const STANDALONE_ERROR_PREFIX: { NO_ARGUMENTS: string; }; export declare const NO_SELECTOR_ERROR_PREFIX = "Selector should be defined"; export declare const STYLE_ERROR_PREFIX: { NO_STYLE: string; NO_SELECTOR: string; INVALID_STYLE: string; UNCLOSED_STYLE: string; NO_PROPERTY: string; NO_VALUE: string; NO_STYLE_OR_ACTION: string; NO_COMMENT: string; }; export declare const NO_AT_RULE_ERROR_PREFIX = "At-rules are not supported"; /** * Error message shape shared by all action pseudo-classes. */ export type ActionErrorPrefix = { INVALID_ACTION: string; NO_TARGET_SELECTOR: string; MULTIPLE_USAGE: string; INVALID_POSITION: string; INVALID_ARG: string; }; export declare const REMOVE_ERROR_PREFIX: ActionErrorPrefix; export declare const REMOVE_ATTR_ERROR_PREFIX: ActionErrorPrefix; export declare const REMOVE_CLASS_ERROR_PREFIX: ActionErrorPrefix; /** * Maps an action pseudo-class marker to its error messages. */ export declare const ACTION_ERROR_PREFIXES: Record; /** * Quote mark of a quoted string. */ export type QuoteMark = '"' | "'"; export declare const MATCHING_ELEMENT_ERROR_PREFIX = "Error while matching element"; export declare const MAX_STYLE_PROTECTION_COUNT = 50; /** * Maximum number of times an action (e.g. `:remove-attr()`) is applied * to the same element with the same argument. * Needed to avoid an endless loop if the page keeps re-adding * the removed attribute or class. */ export declare const MAX_ACTION_REMOVALS_COUNT = 50; export declare const ID_ATTRIBUTE = "id"; export declare const CLASS_ATTRIBUTE = "class"; export declare const STYLE_ATTRIBUTE = "style";