import { a as ChannelPublishOptions, c as ChannelSubscribeOptions, i as ChannelPublishInput, l as ChannelSubscription, n as ChannelDefinitionTransport, o as ChannelRequestOptions, r as ChannelMessage, s as ChannelSocket, t as ChannelConnectOptions, u as EventSourceFactoryInit } from "./types-RpdjJLPg.js"; //#region src/channels.d.ts declare class Channel { readonly name: string; readonly transport: ChannelDefinitionTransport | undefined; readonly params: Record; constructor(name: string, transport?: ChannelDefinitionTransport, params?: Record); publish(message: ChannelPublishInput, options?: ChannelPublishOptions): Promise>; subscribe(options?: ChannelSubscribeOptions): ChannelSubscription; connect(options?: ChannelConnectOptions): ChannelSocket; } //#endregion //#region src/channels/configure.d.ts type TokenResolver = () => string | null | Promise; declare function configureChannels(input: Partial<{ token: TokenResolver; fetch: typeof fetch; websocket: typeof WebSocket; }>): void; //#endregion export { Channel, type ChannelConnectOptions, type ChannelMessage, type ChannelPublishInput, type ChannelPublishOptions, type ChannelRequestOptions, type ChannelSocket, type ChannelSubscribeOptions, type ChannelSubscription, type EventSourceFactoryInit, configureChannels }; //# sourceMappingURL=client.d.ts.map