import { S as Stream } from './stream-c68f23c8'; import { G as GetDataType, D as Destination, c as GetReturnType, O as OnMessageCallback, E as Endpoint } from './types-248b79c4'; import * as type_fest from 'type-fest'; declare function setNamespace(nsps: string): void; declare const sendMessage: (messageID: K, data: GetDataType, destination?: Destination) => Promise>; declare const onMessage: (messageID: K, callback: OnMessageCallback, GetReturnType>) => () => void; declare const openStream: (channel: string, destination: string | Endpoint) => Promise; declare const onOpenStreamChannel: (channel: string, callback: (stream: Stream) => void) => void; export { onMessage, onOpenStreamChannel, openStream, sendMessage, setNamespace };