You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
947 B
25 lines
947 B
|
2 years ago
|
import { ComponentValue } from '@csstools/css-parser-algorithms';
|
||
|
|
import { CSSToken } from '@csstools/css-tokenizer';
|
||
|
|
import { NodeType } from '../util/node-type';
|
||
|
|
export declare class MediaFeatureName {
|
||
|
|
type: NodeType;
|
||
|
|
name: ComponentValue;
|
||
|
|
before: Array<CSSToken>;
|
||
|
|
after: Array<CSSToken>;
|
||
|
|
constructor(name: ComponentValue, before?: Array<CSSToken>, after?: Array<CSSToken>);
|
||
|
|
getName(): string;
|
||
|
|
getNameToken(): CSSToken;
|
||
|
|
tokens(): Array<CSSToken>;
|
||
|
|
toString(): string;
|
||
|
|
indexOf(item: ComponentValue): number | string;
|
||
|
|
at(index: number | string): ComponentValue | undefined;
|
||
|
|
toJSON(): {
|
||
|
|
type: NodeType;
|
||
|
|
name: string;
|
||
|
|
tokens: CSSToken[];
|
||
|
|
};
|
||
|
|
isMediaFeatureName(): this is MediaFeatureName;
|
||
|
|
static isMediaFeatureName(x: unknown): x is MediaFeatureName;
|
||
|
|
}
|
||
|
|
export declare function parseMediaFeatureName(componentValues: Array<ComponentValue>): MediaFeatureName | false;
|