blob: 225d9fdacfa65ff6c2e2767233438a4ecd4ff825 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
import { CSSToken } from '@csstools/css-tokenizer';
import { ParseError } from '@csstools/css-tokenizer';
export declare function addLayerToModel(layers: Array<LayerName>, currentLayerNames: Array<LayerName>): LayerName[];
export declare class LayerName {
parts: Array<CSSToken>;
constructor(parts: Array<CSSToken>);
tokens(): Array<CSSToken>;
slice(start: number, end: number): LayerName;
concat(other: LayerName): LayerName;
segments(): Array<string>;
name(): string;
equal(other: LayerName): boolean;
toString(): string;
toJSON(): {
parts: CSSToken[];
segments: string[];
name: string;
};
}
export declare function parse(source: string, options?: {
onParseError?: (error: ParseError) => void;
}): LayerName[];
export declare function parseFromTokens(tokens: Array<CSSToken>, options?: {
onParseError?: (error: ParseError) => void;
}): LayerName[];
export { }
|