export interface MessagePasserRequest {
    identifier: string;
    method: string;
    params: any[];
}
export interface MessagePasserResponse {
    data?: any;
    error?: Error;
    identifier: string;
}
export interface MessagePasserMessageEvent<T = any> {
    data: T;
}
export interface MessagePasserTarget {
    postMessage(data: any): void;
    addEventListener(event: "message", cb: (res: MessagePasserMessageEvent) => void): void;
    removeEventListener(event: "message", cb: Function): void;
}
