epiphany/node_modules/@csstools/media-query-list-parser/dist/nodes/media-feature-name.d.ts
2023-12-09 22:48:07 -08:00

24 lines
947 B
TypeScript

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;