import { EventEmitter, OnInit } from '@angular/core'; import { GoogleMapComponent } from '@bespunky/angular-google-maps/core'; import { OverlaysSuperpower } from '../services/overlays-superpower.service'; /** * Reads the OverlaysSuperpower from the map component and outputs it to the given variable for programmatic control. * Two way binding syntax must be used for the extraction to work automatically. * Not that setting the value will have no effect whatsoever. * * The `GoogleMapsOverlaysModule` must be imported for this directive to work. * * @example * ```html * ... * ``` * * @export * @class OverlaysDirective * @implements {OnInit} */ export declare class OverlaysDirective implements OnInit { private power; /** * The overlays power instantiated for the map. * * @readonly * @type {OverlaysSuperpower} */ get overlays(): OverlaysSuperpower; /** * Emits when the overlays power changed. This only happens when the map is instantiated. * * @type {EventEmitter} */ overlaysChange: EventEmitter; constructor(mapComponent: GoogleMapComponent); /** * Dummy setter. Does nothing. * Angular expects a setter to go with the getter, but the real value is actually set * by ngOnInit() so this is not necessary. */ set overlays(noEffect: OverlaysSuperpower); /** * Waits for change detection cicle to end, then emits the superpower. */ ngOnInit(): void; }