mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-03 03:29:30 +08:00
32 lines
1 KiB
Text
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 {};
|