import type { Logger } from '@n8n/backend-common'; import type { ExecutionChannelCodec, ExecutionChannelFrameHandler, ExecutionChannelSubscriber, ExecutionChannelTopic, UnsubscribeFromExecutionChannel } from '@n8n/engine'; import type { InMemoryExecutionChannel } from './in-memory-execution-channel'; export declare class ExecutionChannelReceiver { private readonly subscriber; private readonly codec; private readonly logger; private stopped; constructor(subscriber: ExecutionChannelSubscriber, codec: ExecutionChannelCodec, logger: Logger); receive(executionId: string, handler: (message: T) => void): Promise; stop(): Promise; } export declare class InMemoryExecutionChannelSubscriber implements ExecutionChannelSubscriber { private readonly channel; private readonly subscriptions; private stopped; constructor(channel: InMemoryExecutionChannel); subscribe(topic: ExecutionChannelTopic, executionId: string, handler: ExecutionChannelFrameHandler): Promise; stop(): Promise; }