import { ComponentRef, ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core'; import { CdkPortalOutlet, ComponentPortal } from '@angular/cdk/portal'; import { ConfigurableFocusTrapFactory } from '@angular/cdk/a11y'; import { AnimationEvent } from '@angular/animations'; import { Observable } from 'rxjs'; import { AbstractAnimationEvent, AnimationPhase, AnimationState } from '../core/animations'; import { DialogConfig } from './dialog-config'; export declare class DialogContainerComponent implements OnInit, OnDestroy { private elementRef; private focusTrapFactory; readonly dialogConfig: DialogConfig; private document; /** The portal outlet inside of this container into which the dialog content will be loaded. */ portalOutlet: CdkPortalOutlet; /** Subject that notifies when the component is destroyed */ private destroyed$; /** The focus trap class to keep the focus inside of the dialog. */ private focusTrap; /** The element that was focused before opening the dialog */ private previouslyFocusedElement; /** Whether or not to use CSS animations */ private useCssAnimation; /** State of the animation */ private animationState; /** Emits when the animation state changed */ readonly animationStateChanged$: EventEmitter; classes: string; tabIndex: number; attrId: string; attrRole: import("./dialog.interface").DialogRole; ariaModal: boolean; ariaLabel: string; ariaLabelledBy: string; ariaDescribedBy: string; animationDisabled: boolean; get animationBinding(): AnimationState; constructor(document: any, elementRef: ElementRef, focusTrapFactory: ConfigurableFocusTrapFactory, dialogConfig: DialogConfig); onAnimationEvent(event: AnimationEvent): void; /** * Invoked when the dialog is initialized. */ ngOnInit(): void; /** * Attach a ComponentPortal as content to this dialog. */ attachComponentPortal(portal: ComponentPortal): ComponentRef; /** * Get the first dialog animation event matching the given criteria. * * Mocks the event after the 'animationTimeout' time has passed, which covers * rare cases when the animation event is not fired - for whatever reason. */ nextAnimationEvent(phaseName: AnimationPhase, toState: AnimationState): Observable; /** * Start the exit animation. */ startExitAnimation(): void; /** * Moves focus back into the dialog if it was moved out. */ recaptureFocus(): void; /** * Moves focus inside of a focus trap. */ private trapFocus; /** * Restores focus to the element that was focused before the dialog opened. */ private restoreFocus; /** * Returns whether focus is inside the dialog. */ private hasFocus; /** * Set the animation state class on the host to allow for CSS animations. */ private setAnimationStateClass; /** * Listen to animation events on the host and update the state accordingly. */ private bindAnimationListeners; /** * Update the animation state. */ private updateAnimationState; /** * Invoked when the dialog is destroyed. */ ngOnDestroy(): void; }