1 |
|
2 |
|
3 |
|
4 | import type {PluginConfig, PluginResult} from './plugins';
|
5 |
|
6 | type MediaQueryListListener = (mql: MediaQueryList) => void;
|
7 |
|
8 | type MediaQueryList = {
|
9 | matches: boolean,
|
10 | addListener(listener: MediaQueryListListener): void,
|
11 | removeListener(listener: MediaQueryListListener): void,
|
12 | };
|
13 |
|
14 | export type Plugin = (pluginConfig: PluginConfig) => PluginResult;
|
15 | export type MatchMediaType = (mediaQueryString: string) => MediaQueryList;
|
16 |
|
17 | export type Config = {
|
18 | matchMedia?: MatchMediaType,
|
19 | plugins?: Array<Plugin>,
|
20 | userAgent?: string,
|
21 | };
|