import * as i0 from '@angular/core'; import { InjectionToken, FactoryProvider, ClassProvider, EventEmitter } from '@angular/core'; import { EventManager } from '@angular/platform-browser'; declare const WINDOW: InjectionToken; declare const windowProvider: FactoryProvider; declare const WINDOW_PROVIDERS: (ClassProvider | FactoryProvider)[]; /** * Provides safe access to the Browser's {@link window} object. It provides * functions such as 'alert', 'confirm' and 'prompt' instead of calling * window.* directly. This service also provides a Browser window resize * event and to Angular's {@link EventManager} for additional functionality. * * Ensure to call {@link provideBrowserWindow} from the appConfig.ts to * register the {@link WINDOW} token this services uses. */ declare class TbxWindowService { readonly window: Window; readonly eventManager: EventManager; /** * Event occurs when the Browser window is resized. Provides an * object with the width and height of the window. */ onResize: EventEmitter<{ /** The window width. */ width: number; /** The window height. */ height: number; }>; constructor(window: Window, eventManager: EventManager); /** * Displays an alert using the Browser Alert service. * @param message The message to display. */ alert(message: string): void; /** * Displays a confirm prompt using the Browser Confirm service. * @param message The message to display. * @return The confirmation response. */ confirm(message: string): boolean; prompt(message: string, defaultValue?: string): string | null; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** * Define abstract class for obtaining reference to the global window object. */ declare abstract class WindowRef { /** Gets the native window object. */ get nativeWindow(): Window | Object; } /** * Implements the abstract class and returns the native window object. */ declare class BrowserWindowRef extends WindowRef { /** Initializes a new instance of the {@link BrowserWindowRef} class. */ constructor(); /** Gets the native window object. */ get nativeWindow(): Window | Object; } declare const windowFactory: (browserWindowRef: BrowserWindowRef, platformId: object) => Window | object; /** * Provides safe access to the Browser's {@link window} object. Inject the * {@link TbxWindowService} to use functions such as 'alert' and 'confirm' * instead of calling window.* directly. This service also provides a * Browser window resize event and to Angular's {@link EventManager} for * additional functionality. */ declare const provideBrowserWindow: () => (i0.ClassProvider | i0.FactoryProvider)[]; export { BrowserWindowRef, TbxWindowService, WINDOW, WINDOW_PROVIDERS, WindowRef, provideBrowserWindow, windowFactory, windowProvider };