UNPKG

@exadel/esl

Version:

Exadel Smart Library (ESL) is the lightweight custom elements library that provide a set of super-flexible components

24 lines (23 loc) 846 B
import type { IMediaQueryCondition } from './media-query-base'; /** * Const media condition implementation * @author Alexey Stsefanovich (ala'n) * * Ignores listeners always return the same result. * Have only two instances: {@link ALL} and {@link NOT_ALL} */ declare class MediaQueryConstCondition implements IMediaQueryCondition { private readonly _matches; constructor(_matches: boolean); get matches(): boolean; addEventListener(): void; removeEventListener(): void; dispatchEvent(): boolean; optimize(): IMediaQueryCondition; toString(): string; /** Compares const media condition with the passed query instance or string */ eq(val: IMediaQueryCondition | string): boolean; } export declare const ALL: MediaQueryConstCondition; export declare const NOT_ALL: MediaQueryConstCondition; export {};