UNPKG

849 BTypeScriptView Raw
1import { Breakpoints } from "./Breakpoints";
2import { MediaBreakpointProps } from "./Media";
3/**
4 * Encapsulates all interaction data (and breakpoint data in the superclass)
5 * needed by the Media component. The data is generated on initialization so no
6 * further runtime work is necessary.
7 */
8export declare class MediaQueries<B extends string> {
9 static validKeys(): string[];
10 private _breakpoints;
11 private _interactions;
12 constructor(breakpoints: {
13 [key: string]: number;
14 }, interactions: {
15 [name: string]: string;
16 });
17 get breakpoints(): Breakpoints<B>;
18 toStyle: () => string;
19 get mediaQueryTypes(): string[];
20 get dynamicResponsiveMediaQueries(): {};
21 shouldRenderMediaQuery(mediaQueryProps: {
22 interaction?: string;
23 } & MediaBreakpointProps, onlyMatch: string[]): boolean;
24}