import { App } from "../../App"; import { AtomUri } from "../../core/AtomUri"; import FormattedString from "../../core/FormattedString"; import { IScreen } from "../../core/IScreen"; import { IClassOf, IDisposable } from "../../core/types"; import { JsonService } from "../../services/JsonService"; import { IPageOptions, NavigationService, NotifyType } from "../../services/NavigationService"; import AtomAlertWindow from "../controls/AtomAlertWindow"; import { AtomControl } from "../controls/AtomControl"; export declare type HostForElementFunc = ((e: HTMLElement) => HTMLElement); export declare class WindowService extends NavigationService { private jsonService; /** * This is just to preload Alert window. */ static alertWindow: typeof AtomAlertWindow; readonly screen: IScreen; currentTarget: HTMLElement; private popups; private hostForElementFunc; private lastPopupID; /** * Get current window title * * @type {string} * @memberof BrowserService */ /** * Set current window title * @memberof BrowserService */ title: string; /** * Gets current location of browser, this does not return * actual location but it returns values of browser location. * This is done to provide mocking behavior for unit testing. * * @readonly * @type {AtomLocation} * @memberof BrowserService */ location: AtomUri; constructor(app: App, jsonService: JsonService); registerHostForWindow(f: HostForElementFunc): IDisposable; /** * Navigate current browser to given url. * @param {string} url * @memberof BrowserService */ navigate(url: string): void; back(): void; register(id: string, type: IClassOf): void; confirm(message: string | FormattedString, title: string): Promise; alert(message: string | FormattedString | any, title?: string): Promise; closePopup(): void; refresh(): void; getHostForElement(): HTMLElement; refreshScreen(): void; notify(message: string | FormattedString, title?: string, type?: NotifyType, delay?: number): void; protected registerForPopup(): void; protected openWindow(url: AtomUri, options?: IPageOptions): Promise; private centerElement; } //# sourceMappingURL=WindowService.d.ts.map