import type { NotificationChannel, ChannelConfig, NotificationEvent } from '../types'; /** * 解析 Activity Streams 2.0 消息为 NotificationEvent */ export declare function parseActivityStreamsMessage(data: string): NotificationEvent; /** * Channel 抽象基类 */ export declare abstract class BaseChannel implements NotificationChannel { protected _connected: boolean; protected readonly config: ChannelConfig; constructor(config: ChannelConfig); get connected(): boolean; abstract connect(): Promise; abstract disconnect(): void; /** * 处理收到的消息 */ protected handleMessage(data: string): void; /** * 处理错误 */ protected handleError(error: Error): void; /** * 处理连接关闭 */ protected handleClose(): void; } //# sourceMappingURL=base-channel.d.ts.map