import { InjectionToken, OnDestroy, Injector, TemplateRef } from '@angular/core'; import { Overlay, OverlayContainer, ScrollStrategy, ComponentType } from '@angular/cdk/overlay'; import { Observable, Subject, BehaviorSubject } from 'rxjs'; import { GritOverlayConfig, OverlayType } from './grit-overlay-config'; import { GritOverlayRef } from './grit-overlay-ref'; import { Location } from '@angular/common'; import { BreakpointObserver, MediaMatcher } from '@angular/cdk/layout'; import * as i0 from "@angular/core"; export declare const GRIT_OVERLAY_DATA: InjectionToken; export declare const GRIT_OVERLAY_DEFAULT_OPTIONS: InjectionToken>; /** Injection token that determines the scroll handling while the dialog is open. */ export declare const GRIT_OVERLAY_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>; export declare function GRIT_OVERLAY_SCROLL_STRATEGY_FACTORY(overlay: Overlay): () => ScrollStrategy; export declare function GRIT_OVERLAY_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay: Overlay): () => ScrollStrategy; export declare const GRIT_OVERLAY_SCROLL_STRATEGY_PROVIDER: { provide: InjectionToken<() => ScrollStrategy>; deps: (typeof Overlay)[]; useFactory: typeof GRIT_OVERLAY_SCROLL_STRATEGY_PROVIDER_FACTORY; }; export declare class GritOverlay implements OnDestroy { private _overlay; private _injector; private _location; private _defaultOptions; private _parentOverlay; private _overlayContainer; _overlayType: BehaviorSubject; private _openOverlaysAtThisLevel; private readonly _afterAllClosedAtThisLevel; private readonly _afterOpenedAtThisLevel; private _ariaHiddenElements; private _scrollStrategy; /** Keeps track of the currently-open dialogs. */ get openOverlays(): GritOverlayRef[]; get afterOpened(): Subject>; get afterOpen(): Subject>; get _afterAllClosed(): Subject; readonly afterAllClosed: Observable; _isTablet: boolean; _overlayBoundingBox: any; constructor(_overlay: Overlay, _injector: Injector, _location: Location, _defaultOptions: GritOverlayConfig, scrollStrategy: any, _parentOverlay: GritOverlay, _overlayContainer: OverlayContainer, breakpointObserver: BreakpointObserver, mediaMatcher: MediaMatcher); open(componentOrTemplateRef: ComponentType | TemplateRef, config?: GritOverlayConfig): GritOverlayRef; getCurrentOverlayType(): Observable; updateOverlayType(type: any): void; closeAll(): void; getDialogById(id: string): GritOverlayRef | undefined; ngOnDestroy(): void; private _attachDialogContent; private _createInjector; private _attachDialogContainer; private _createOverlay; private _createModalPosition; private _createBottomSheetPosition; private _createRightSheetPosition; private _getOverlayConfig; private _getBackdrop; private _removeOpenDialog; private _closeDialogs; private _hideNonDialogContentFromAssistiveTechnology; static ɵfac: i0.ɵɵFactoryDef; static ɵprov: i0.ɵɵInjectableDef; }