import EventTarget from '../event/EventTarget.js'; import Event from '../event/Event.js'; import IBrowserWindow from '../window/IBrowserWindow.js'; import IEventListener from '../event/IEventListener.js'; /** * Media Query List. * * Reference: * https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList. */ export default class MediaQueryList extends EventTarget { #private; onchange: (event: Event) => void; /** * Constructor. * * @param options Options. * @param options.ownerWindow Owner window. * @param options.media Media. * @param [options.rootFontSize] Root font size. */ constructor(options: { ownerWindow: IBrowserWindow; media: string; rootFontSize?: string | number; }); /** * Returns media. * * @returns Media. */ get media(): string; /** * Returns "true" if the document matches. * * @returns Matches. */ get matches(): boolean; /** * Adds a listener. * * @deprecated * @param callback Callback. */ addListener(callback: (event: Event) => void): void; /** * Removes listener. * * @deprecated * @param callback Callback. */ removeListener(callback: (event: Event) => void): void; /** * @override */ addEventListener(type: string, listener: IEventListener | ((event: Event) => void)): void; /** * @override */ removeEventListener(type: string, listener: IEventListener | ((event: Event) => void)): void; } //# sourceMappingURL=MediaQueryList.d.ts.map