type Commands = Record; type Invoke = (command: C, payload: T[C][0]) => Promise; export declare function spawn(url: string | URL, init?: (invoke: Invoke) => void): Invoke; export {};