1 | /**
|
2 | * @license
|
3 | * Copyright Google LLC All Rights Reserved.
|
4 | *
|
5 | * Use of this source code is governed by an MIT-style license that can be
|
6 | * found in the LICENSE file at https://angular.io/license
|
7 | */
|
8 | export declare type MediaQuerySubscriber = (changes: MediaChange) => void;
|
9 | /**
|
10 | * Class instances emitted [to observers] for each mql notification
|
11 | */
|
12 | export declare class MediaChange {
|
13 | matches: boolean;
|
14 | mediaQuery: string;
|
15 | mqAlias: string;
|
16 | suffix: string;
|
17 | priority: number;
|
18 | property: string;
|
19 | value: any;
|
20 | /**
|
21 | * @param matches whether the mediaQuery is currently activated
|
22 | * @param mediaQuery e.g. (min-width: 600px) and (max-width: 959px)
|
23 | * @param mqAlias e.g. gt-sm, md, gt-lg
|
24 | * @param suffix e.g. GtSM, Md, GtLg
|
25 | * @param priority the priority of activation for the given breakpoint
|
26 | */
|
27 | constructor(matches?: boolean, mediaQuery?: string, mqAlias?: string, suffix?: string, priority?: number);
|
28 | /** Create an exact copy of the MediaChange */
|
29 | clone(): MediaChange;
|
30 | }
|