/*! http-post-message v0.3.0 | (c) 2016 Microsoft Corporation MIT */ export interface IHttpPostMessageRequest { method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE"; url: string; headers: any; body?: any; } export interface IHttpPostMessageResponse { statusCode: number; statusText: string; headers: any; body: T; } export interface IPostMessage { postMessage(window: Window, message: any, targetOrigin?: string): Promise; } export declare class HttpPostMessage { static addTrackingProperties(message: any, trackingProperties: any): any; static getTrackingProperties(message: any): any; static isErrorMessage(message: any): boolean; defaultHeaders: any; defaultTargetWindow: Window; defaultTargetOrigin?: string; windowPostMessageProxy: IPostMessage; constructor(windowPostMessageProxy: IPostMessage, defaultHeaders?: any, defaultTargetWindow?: Window, defaultTargetOrigin?: string); get(url: string, headers?: any, targetWindow?: Window, targetOrigin?: string): Promise>; post(url: string, body: any, headers?: any, targetWindow?: Window, targetOrigin?: string): Promise>; put(url: string, body: any, headers?: any, targetWindow?: Window, targetOrigin?: string): Promise>; patch(url: string, body: any, headers?: any, targetWindow?: Window, targetOrigin?: string): Promise>; delete(url: string, body?: any, headers?: any, targetWindow?: Window, targetOrigin?: string): Promise>; send(request: IHttpPostMessageRequest, targetWindow?: Window, targetOrigin?: string | undefined): Promise>; /** * Object.assign() polyfill * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign */ private assign; }