import { BrowserWindow } from 'electron'; import { Observable } from 'rxjs'; import * as t from '../../types'; export * from '../../types'; export declare type IScreenContext = { readonly log: t.ILog; readonly settings: t.ISettingsClient; readonly ipc: t.IpcClient; readonly windows: t.IWindows; }; export declare type IScreenFactory = IScreenContext & { readonly events$: Observable; readonly change$: Observable; readonly created$: Observable; readonly closed$: Observable; readonly instances: t.IScreen[]; instance(uid: string): IScreen | undefined; exists(uid: string): boolean; create(args: { type: string; url: string; uid?: string; isStateful?: boolean; window?: Electron.BrowserWindowConstructorOptions; bounds?: Partial; }): IScreen; type(args: { type: string; url: string; isStateful?: boolean; window?: Electron.BrowserWindowConstructorOptions; }): IScreenTypeFactory; }; export declare type IScreenTypeFactory = IScreenContext & { readonly type: string; readonly events$: Observable; readonly change$: Observable; readonly created$: Observable; readonly closed$: Observable; readonly instances: t.IScreen[]; instance(uid: string): IScreen | undefined; exists(uid: string): boolean; create(args?: { uid?: string; isStateful?: boolean; window?: Electron.BrowserWindowConstructorOptions; bounds?: Partial; }): IScreen; }; export declare type IScreen = IScreenContext & { readonly uid: string; readonly type: string; readonly window: BrowserWindow; readonly tags: t.IWindowTag[]; readonly dispose$: Observable; readonly events$: Observable; readonly change$: Observable; readonly closed$: Observable; }; export declare type ScreenEvent = IScreenChangeEvent; export declare type IScreenChangeEvent = { type: '@platform/SCREEN/window/change'; payload: IScreenChange; }; export declare type IScreenChange = t.IWindowChange & { screen: string; };