/** * @license * Copyright Datorama. All Rights Reserved. * * Use of this source code is governed by an Apache License 2.0 license that can be * found in the LICENSE file at https://github.com/datorama/client-core/blob/master/LICENSE */ import { ApplicationRef, ComponentFactoryResolver, Injector, NgZone } from '@angular/core'; import { ContentType } from '../dynamic-content/dynamic-content.types'; import { DatoTranslateService } from '../services/translate.service'; import { PopoverAction, PopoverConfig } from './popover.types'; import { Observable } from 'rxjs'; import { Popper } from '../services/popper'; export declare class DatoPopover { private resolver; private translate; private injector; private appRef; private zone; private popper; private document; private stack; private bodySubscription; private enableClose; constructor(resolver: ComponentFactoryResolver, translate: DatoTranslateService, injector: Injector, appRef: ApplicationRef, zone: NgZone, popper: Popper, document: any); open(content: ContentType, origin: E, config?: PopoverConfig): Observable; close(result?: PopoverAction): void; setEnableClose(enableClose: boolean): void; closeById(id: string, result?: PopoverAction): void; private removeChildFromParent; private closeByIndex; private createInjector; private handleBodyClick; }