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.
24 lines
1.7 KiB
24 lines
1.7 KiB
|
2 years ago
|
import { CSSToken } from '@csstools/css-tokenizer';
|
||
|
|
import { MediaConditionListWithAnd, MediaConditionListWithAndWalkerEntry, MediaConditionListWithAndWalkerParent, MediaConditionListWithOr, MediaConditionListWithOrWalkerEntry, MediaConditionListWithOrWalkerParent } from './media-condition-list';
|
||
|
|
import { MediaInParens } from './media-in-parens';
|
||
|
|
import { MediaNot, MediaNotWalkerEntry, MediaNotWalkerParent } from './media-not';
|
||
|
|
import { NodeType } from '../util/node-type';
|
||
|
|
export declare class MediaCondition {
|
||
|
|
type: NodeType;
|
||
|
|
media: MediaNot | MediaInParens | MediaConditionListWithAnd | MediaConditionListWithOr;
|
||
|
|
constructor(media: MediaNot | MediaInParens | MediaConditionListWithAnd | MediaConditionListWithOr);
|
||
|
|
tokens(): Array<CSSToken>;
|
||
|
|
toString(): string;
|
||
|
|
indexOf(item: MediaNot | MediaInParens | MediaConditionListWithAnd | MediaConditionListWithOr): number | string;
|
||
|
|
at(index: number | string): MediaNot | MediaInParens | MediaConditionListWithAnd | MediaConditionListWithOr | undefined;
|
||
|
|
walk(cb: (entry: {
|
||
|
|
node: MediaConditionWalkerEntry;
|
||
|
|
parent: MediaConditionWalkerParent;
|
||
|
|
}, index: number | string) => boolean | void): false | undefined;
|
||
|
|
toJSON(): unknown;
|
||
|
|
isMediaCondition(): this is MediaCondition;
|
||
|
|
static isMediaCondition(x: unknown): x is MediaCondition;
|
||
|
|
}
|
||
|
|
export type MediaConditionWalkerEntry = MediaNotWalkerEntry | MediaConditionListWithAndWalkerEntry | MediaConditionListWithOrWalkerEntry | MediaNot | MediaConditionListWithAnd | MediaConditionListWithOr;
|
||
|
|
export type MediaConditionWalkerParent = MediaNotWalkerParent | MediaConditionListWithAndWalkerParent | MediaConditionListWithOrWalkerParent | MediaCondition;
|