import { Subject } from "rxjs"; import { BaseSimpleEvent } from "./veflux"; import { VasatModel } from "./models/base-models"; import { Store } from "./veflux"; import { MenuItem } from "./models/types"; import { Vasat } from "./service"; export declare class ContextEvent extends BaseSimpleEvent> { } export interface IFrameCMD { cmd: string; payload: any; } export declare class IFrameService { private vasat; private _activeContext; private _user; private _cfg; private _siteInfo; private _siteObj; readonly state: Subject<{ [key: string]: object; }>; readonly message: Subject; constructor(vasat: Vasat); send(cmd: string, payload: any): void; private init; msgInfo(msg: string, title?: string, options?: any): void; msgSuccess(msg: string, title?: string, options?: any): void; msgError(msg: string, title?: string, options?: any): void; msgWarning(msg: string, title?: string, options?: any): void; setTile(title: string): void; setChildMenus(menus: MenuItem[], gotoMenu?: string): void; setMenus(basepath: string, menus: MenuItem[]): void; navigateTo(path: string, subpath?: string): void; refreshToken(): void; private msg; get activeContext(): Store, void, ContextEvent>; get user(): Store, void, ContextEvent>; get siteInfo(): import("rxjs").Observable; get siteObj(): import("rxjs").Observable; } /** * Emit a message to a child iframe (As obposed to IFrameService which runs on the page inside the iFram, this runs on the page outside the iframe) * @param iframe * @param msg */ export declare function sendMessage(iframe: HTMLIFrameElement, msg: IFrameCMD): void;