frontend/.pnpm-store/v3/files/50/c9d7ba2d26dc3a3d800a422d62bcf5d4105675f79f9de09c2a40d3e95b93e0be575a83e6d74f6ca2ee791a38d36221f9090450d6ceece661a0391c1e110774

35 lines
1.2 KiB
Plaintext

import MagicString from 'magic-string';
import Stylesheet from './Stylesheet';
import { CssNode } from './interfaces';
import Component from '../Component';
import Element from '../nodes/Element';
export default class Selector {
node: CssNode;
stylesheet: Stylesheet;
blocks: Block[];
local_blocks: Block[];
used: boolean;
constructor(node: CssNode, stylesheet: Stylesheet);
apply(node: Element): void;
minify(code: MagicString): void;
transform(code: MagicString, attr: string, max_amount_class_specificity_increased: number): void;
validate(component: Component): void;
validate_global_with_multiple_selectors(component: Component): void;
validate_invalid_combinator_without_selector(component: Component): void;
validate_global_compound_selector(component: Component): void;
get_amount_class_specificity_increased(): number;
}
declare class Block {
host: boolean;
root: boolean;
combinator: CssNode;
selectors: CssNode[];
start: number;
end: number;
should_encapsulate: boolean;
constructor(combinator: CssNode);
add(selector: CssNode): void;
get global(): boolean;
}
export {};