import { Observable } from 'rxjs'; import { WindowService } from '../window/window.service'; import * as i0 from "@angular/core"; export declare type MessageType = 'Ping' | 'DismissUpload' | 'LaunchContactUs' | 'LaunchUpload' | 'Ping' | 'RequestDocumentHeight' | 'SetChildLoaded'; export interface IMessage { message?: T; type: string; } export interface IPing extends IMessage { pingId: string; type: MessageType; } export interface IPong extends IMessage { message?: T; pongId: string; type: string; } export interface IPongMessage { } export interface IPongResponse extends IPong { message?: {}; type: 'Pong'; } export interface IDocumentHeightMessage { documentHeight: number; } export interface IDocumentHeightResponse extends IPong { type: 'DocumentHeight'; } export interface ILaunchUploadMessage { uploads: string[]; } export interface ILaunchUploadResponse extends IPong { type: 'LaunchUpload'; } export interface ISuccessMessage { success: boolean; } export interface ISuccessResponse extends IPong { type: 'Success'; } export interface ISetChildLoadedMessage { } export interface ISetChildLoadedResponse extends IPong { type: 'SetChildLoaded'; } export declare class FrameGuestService { private windowService; parent: Window; constructor(windowService: WindowService); DismissUpload(): Observable; LaunchContactUs(): Observable; LaunchUpload(): Observable; Ping(): Observable; RequestDocumentHeight(): Observable; SetChildLoaded(): Observable; setParent(newParent: Window): void; private static _pingId; private static get pingId(); /** * Injects a pingId into the message and sends to window.parent. * @param message A message to send to the parent frame */ private send; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }