Urara-Blog/node_modules/.pnpm-store/v3/files/f4/f52b8ac051b9529ef644a75045da09869f5b927b2376d073af3cf3987d6b783d39ddda56bde906338f2c32cd26b45cd61c67d5b26970c524a6ebbd7b9ac696
2022-08-14 01:14:53 +08:00

32 lines
1 KiB
Text

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;
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 {};