import type { DomainMatcher } from 'cross-domain-utils'; import type { Sandestin } from 'sandestin'; import type { Cancelable, Transport } from './types'; import { ProxyWindow } from './proxy-window'; export type PeerContext = { readonly source: Window | ProxyWindow; readonly origin: DomainMatcher; }; type Peer = { readonly win: Window | ProxyWindow; readonly serdes: Sandestin; }; export declare const getPeer: (winOrProxyWin: Window | ProxyWindow, { send }: Pick) => Peer; export declare const listenForPeerRequests: ({ on, send }: Transport) => Cancelable; export {}; //# sourceMappingURL=peer.d.ts.map