import type { Channel, Context, ContextHandler, ContextType, DesktopAgent, Listener, PrivateChannel as FDC3PrivateChannel } from '@finos/fdc3'; import { FullyQualifiedAppIdentifier, IProxyMessagingProvider } from '../contracts.js'; import { MessagingBase } from '../messaging/index.js'; import { ContextListener, IChannelFactory } from './channel.contracts.js'; /** * addContextListener is omitted from this list so that we don't have to implement the deprecated function overload */ type AgentChannels = Pick; export declare class Channels extends MessagingBase implements AgentChannels { private channelFactory; private _contextListener; constructor(channelFactory: IChannelFactory, appIdentifier: FullyQualifiedAppIdentifier, messagingProvider: IProxyMessagingProvider, _contextListener: ContextListener); getCurrentChannel(): Promise; createPrivateChannel(): Promise; getOrCreateChannel(channelId: string): Promise; getUserChannels(): Promise; leaveCurrentChannel(): Promise; joinUserChannel(channelId: string): Promise; broadcast(context: Context): Promise; addContextListener(contextType: ContextType | null, contextHandler: ContextHandler): Promise; } export {};