import { BasedChannel as BasedChannelAbstract, ChannelMessageFunction, Context, InternalSessionClient } from '@based/functions'; export declare class BasedChannel extends BasedChannelAbstract { payload: any; name: string; id: number; ctx: Context; constructor(ctx: Context, name: string, payload: any); subscribe(onMessage: ChannelMessageFunction, onError?: (err: any) => void): () => void; publish(message: any, ctx?: Context): void; }