import { Overlay, OverlayConfig, OverlaySizeConfig } from "@angular/cdk/overlay";
import { CdkPortal } from "@angular/cdk/portal";
import { AfterContentChecked, AfterViewInit, EventEmitter, OnChanges, OnDestroy, SimpleChanges } from "@angular/core";
import { Subject } from "rxjs";
import { EventBusService } from "../../../services/event-bus.service";
import { OverlayPositionService } from "../overlay-position.service";
import { OverlayService } from "../overlay.service";
import { IOverlayComponent, OverlayContainerType } from "../types";
export declare const POPUP_V2_VIEWPORT_MARGINS_DEFAULT = 30;
export declare class OverlayComponent implements OnDestroy, IOverlayComponent, AfterContentChecked, AfterViewInit, OnChanges {
    overlayPositionService: OverlayPositionService;
    protected overlayService: OverlayService;
    protected cdkOverlay: Overlay;
    private eventBusService;
    /** Sets overlay config in accordance with [Material CDK]{@link https://material.angular.io/cdk/overlay/api#OverlayConfig} */
    overlayConfig: OverlayConfig;
    /** Element to which the Popup is attached */
    toggleReference: HTMLElement;
    /** Popup viewport margins */
    viewportMargin: number;
    /** Sets custom container for CDK Overlay. Selector OR ElementRef */
    customContainer: OverlayContainerType;
    /** Sets the role attribute */
    roleAttr: string;
    /** Emits MouseEvent when click occurs outside Select/Combobox */
    clickOutside: EventEmitter<MouseEvent>;
    /** The place where the Popup will be attached */
    contentTemplate: CdkPortal;
    /** Emits on the Popup show */
    show$: Subject<void>;
    /** Emits on the Popup hide */
    hide$: Subject<void>;
    /** Emits when content of the Popup is empty */
    empty$: Subject<unknown>;
    /** Indicates open/close state */
    get showing(): boolean;
    private positionStrategySubscription;
    constructor(overlayPositionService: OverlayPositionService, overlayService: OverlayService, cdkOverlay: Overlay, eventBusService: EventBusService);
    ngOnChanges(changes: SimpleChanges): void;
    ngAfterViewInit(): void;
    ngAfterContentChecked(): void;
    ngOnDestroy(): void;
    /** Shows Popup */
    show(): void;
    /** Hides Popup */
    hide(): void;
    /** Toggles Popup */
    toggle(): void;
    getOverlayRef(): import("@angular/cdk/overlay").OverlayRef;
    updateSize(size: OverlaySizeConfig): void;
    /** Stream of clicks outside. */
    private overlayClickOutside;
    private handleOutsideClicks;
    private setOverlayConfig;
    private getContentHeight;
    private isPopupContentEmpty;
}
