import { InjectionToken, Injector, TemplateRef } from '@angular/core'; import { Location } from '@angular/common'; import { DatepickerDialogConfig } from '../classes/datepicker-dialog-config.class'; import { DatepickerDialogRef } from '../classes/datepicker-dialog-ref.class'; import { Overlay, OverlayContainer, ScrollStrategy } from '@angular/cdk/overlay'; import { ComponentType } from '@angular/cdk/portal'; import { Subject } from 'rxjs'; import * as i0 from "@angular/core"; export declare const DATEPICKER_DIALOG_DATA: InjectionToken; /** * Injection token that determines the scroll handling while the dialog is open. * */ export declare const DATEPICKER_DIALOG_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>; export declare function DATEPICKER_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay: Overlay): () => ScrollStrategy; export declare const DATEPICKER_DIALOG_SCROLL_STRATEGY_PROVIDER: { provide: InjectionToken<() => ScrollStrategy>; deps: (typeof Overlay)[]; useFactory: typeof DATEPICKER_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY; }; /** * Injection token that can be used to specify default dialog options. * */ export declare const DATEPICKER_DIALOG_DEFAULT_OPTIONS: InjectionToken; export declare class DatepickerDialogService { private overlay; private injector; private location; private defaultOptions; private parentDialog; private overlayContainer; private ariaHiddenElements; private _openDialogsAtThisLevel; private _afterOpenAtThisLevel; private _afterAllClosedAtThisLevel; /** Keeps track of the currently-open dialogs. */ get openDialogs(): DatepickerDialogRef[]; /** Stream that emits when a dialog has been opened. */ get afterOpen(): Subject>; get _afterAllClosed(): any; /** * Stream that emits when all open dialog have finished closing. * Will emit on subscribe if there are no open dialogs to begin with. */ afterAllClosed: import("rxjs").Observable; private scrollStrategy; constructor(overlay: Overlay, injector: Injector, location: Location, scrollStrategy: any, defaultOptions: DatepickerDialogConfig, parentDialog: DatepickerDialogService, overlayContainer: OverlayContainer); open(componentOrTemplateRef: ComponentType | TemplateRef, config?: DatepickerDialogConfig): DatepickerDialogRef; /** * Closes all of the currently-open dialogs. */ closeAll(): void; /** * Finds an open dialog by its id. * @param id ID to use when looking up the dialog. */ getDialogById(id: string): DatepickerDialogRef | undefined; private attachDialogContent; private createInjector; private createOverlay; private attachDialogContainer; private getOverlayConfig; private removeOpenDialog; /** * Hides all of the content that isn't an overlay from assistive technology. */ private hideNonDialogContentFromAssistiveTechnology; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }