import type { SignalingLayerFunction } from "./index.js"; type MaybePromise = T | Promise; export type SignalingChannel = { type: string; setup: () => MaybePromise; teardown: () => MaybePromise; publish: (payload: string) => MaybePromise; subscribe: (handler: (payload: string) => void) => MaybePromise; }; export type SignalingProtocolOptions = { topic: string; url: string; }; export type SignalingProtocol = (properties: SignalingProtocolOptions) => MaybePromise; export {};