blob: 764e21793b7150e818e70517968b5222044cc5aa [file] [log] [blame]
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { Optional } from '@angular/core';
import { MediaMonitor } from './media-monitor';
import { MatchMedia } from '../match-media/match-media';
import { BreakPointRegistry } from '../breakpoints/break-point-registry';
/**
* Ensure a single global service provider
*/
export declare function MEDIA_MONITOR_PROVIDER_FACTORY(parentMonitor: MediaMonitor, breakpoints: BreakPointRegistry, matchMedia: MatchMedia): MediaMonitor;
/**
* Export provider that uses a global service factory (above)
*/
export declare const MEDIA_MONITOR_PROVIDER: {
provide: typeof MediaMonitor;
deps: (typeof BreakPointRegistry | typeof MatchMedia | Optional[])[];
useFactory: (parentMonitor: MediaMonitor, breakpoints: BreakPointRegistry, matchMedia: MatchMedia) => MediaMonitor;
};