import { Overlay, OverlayConfig, OverlayRef } from '@angular/cdk/overlay'; import { ThemeBaseDirective } from './theme-base.directive'; import * as i0 from "@angular/core"; /** * NOTE: Providing a theme-aware OverlayContainer was a solution for overlay styles we used to have. * It proved error-prone since it can lead to multiple overlay containers, which can cause * z-index issues in various scenarios (UC-4160, UC-2897, UC-3843). * The current solution applies. */ /** * Sapphire theme aware overlay service. * It's a slim wrapper around CDK Overlay service that adds theme styles to the overlay container. */ export declare class SapphireOverlay extends Overlay { private topLevelThemeRef; private theme; /** * Same as Angular CDK's `overlay.create`, * but applies the current theme style on the overlay container. * @param overlayConfig The overlay configuration to pass to overlay.create() * @param theme The theme to apply. If not provided, the current theme will be used. */ create(overlayConfig?: OverlayConfig, theme?: ThemeBaseDirective): OverlayRef; /** * Applies the current theme style on the overlay container. * Useful only when the overlay is not created using `SapphireOverlay.create` method. * E.g. when using some higher-level service like Dialog from angular CDK. * @param overlayRef The overlay reference to apply the theme on. * @param theme The theme to apply. If not provided, the current theme will be used. */ applyTheme(overlayRef: OverlayRef, theme?: ThemeBaseDirective): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }