import * as Ably from '@ably/pubsub-core/api'; export type ChannelNameAndOptions = { /** * The name of the channel to use. When omitted, channel hooks resolve to the * channel named by the closest enclosing `ChannelProvider`. Resolution is * scoped by `contextId`, so a channel is only inferred from a `ChannelProvider` * that uses the same `contextId` (the `default` one when none is provided). */ channelName?: string; contextId?: string; skip?: boolean; onConnectionError?: (error: Ably.ErrorInfo) => unknown; onChannelError?: (error: Ably.ErrorInfo) => unknown; }; export type ChannelNameAndContextId = Pick; export type ChannelParameters = string | ChannelNameAndOptions; export declare const version = "3.2.0"; /** * channel options for react-hooks */ export declare function channelOptionsForReactHooks(options?: Ably.ChannelOptions): Ably.ChannelOptions;