import { MessageChannel } from './channel'; /** Wrap an existing port in a MessageChannel. Used on the server side * (offscreen / SW) — there the port is already created by the onConnect * listener. */ export declare function portToChannel(port: chrome.runtime.Port): MessageChannel; /** Client-side channel factory: open a port to the extension runtime by name. * The receiving side is the service worker (chrome.runtime.onConnect is there). */ export declare function createRuntimeChannel(portName: string): MessageChannel; //# sourceMappingURL=chrome-port.d.ts.map