import { ComponentRef, ElementRef, EmbeddedViewRef, EventEmitter, ChangeDetectorRef, Renderer2, OnInit } from '@angular/core'; import { BasePortalOutlet, ComponentPortal, CdkPortalOutlet, TemplatePortal } from '@angular/cdk/portal'; import { FocusTrapFactory } from '@angular/cdk/a11y'; import { GritOverlayConfig } from './grit-overlay-config'; import { AnimationService } from '../core/ui/animation.service'; import * as i0 from "@angular/core"; export declare function throwGritOverlayContentAlreadyAttachedError(): void; export declare class GritOverlayContainer extends BasePortalOutlet implements OnInit { private _focusTrapFactory; private _changeDetectorRef; private _animationService; private _renderer; private _document; _config: GritOverlayConfig; _elementRef: ElementRef; /** The portal outlet inside of this container into which the dialog content will be loaded. */ _portalOutlet: CdkPortalOutlet; /** The class that traps and manages focus within the dialog. */ private _focusTrap; /** Element that was focused before the dialog was opened. Save this to restore upon close. */ private _elementFocusedBeforeDialogWasOpened; private _containerHeight; private _containerWidth; /** State of the dialog animation. */ _state: 'void' | 'enter' | 'exit'; /** Emits when an animation state changes. */ _animationStateChanged: EventEmitter; /** ID of the element that should be considered as the dialog's label. */ _ariaLabelledBy: string | null; /** ID for the container DOM element. */ _id: string; containerClass: boolean; tabindex: number; ariaModal: boolean; role: import("./grit-overlay-config").DialogRole; id: string; ariaLabelBy: string; ariaLabel: string; ariaDescribedby: string; modal: boolean; bottomSheet: boolean; rightSheet: boolean; constructor(_focusTrapFactory: FocusTrapFactory, _changeDetectorRef: ChangeDetectorRef, _animationService: AnimationService, _renderer: Renderer2, _document: any, _config: GritOverlayConfig, _elementRef: ElementRef); ngOnInit(): Promise; attachComponentPortal(portal: ComponentPortal): ComponentRef; attachTemplatePortal(portal: TemplatePortal): EmbeddedViewRef; private _trapFocus; private _restoreFocus; private _savePreviouslyFocusedElement; /** Callback, invoked whenever an animation on the host completes. */ _onAnimationDone(state: any): void; /** Callback, invoked when an animation on the host starts. */ _onAnimationStart(state: any): Promise; /** Starts the dialog exit animation. */ _startExitAnimation(backdrop?: HTMLElement): Promise; /** Starts the dialog exit animation. */ _startEnterAnimation(): Promise; private _startEnterAnimationBottomSheet; private _startExitAnimationBottomSheet; private _preAnimateEnterBottomSheet; private _startEnterAnimationRightSheet; private _startExitAnimationRightSheet; private _preAnimateEnterRightSheet; private _startEnterAnimationModal; private _startExitAnimationModal; private _preAnimateEnterModal; private _applyContainerTypeClass; _BackdropExitAnimation(backdrop: any, startBackgroundColor: any): Promise; static ɵfac: i0.ɵɵFactoryDef; static ɵcmp: i0.ɵɵComponentDefWithMeta; }