import { Logger } from '@n8n/backend-common'; import type { DeleteResult } from '@n8n/typeorm'; import type { MessageEventBusDestinationOptions } from 'n8n-workflow'; import type { EventMessageTypes } from '../../eventbus'; import { MessageEventBus } from '../../eventbus/message-event-bus/message-event-bus'; import { Publisher } from '../../scaling/pubsub/publisher.service'; import { EventDestinationsRepository } from './database/repositories/event-destination.repository'; import { MessageEventBusDestination } from './destinations/message-event-bus-destination.ee'; export declare class LogStreamingDestinationService { private readonly logger; private readonly eventDestinationsRepository; private readonly eventBus; private readonly publisher; private destinations; private isListening; private readonly messageHandler; constructor(logger: Logger, eventDestinationsRepository: EventDestinationsRepository, eventBus: MessageEventBus, publisher: Publisher); loadDestinationsFromDb(): Promise; saveDestinationToDb(destination: MessageEventBusDestination): Promise; deleteDestinationFromDb(id: string): Promise; addDestination(destination: MessageEventBusDestination, notifyInstances?: boolean): Promise; removeDestination(id: string, notifyInstances?: boolean): Promise; initialize(): Promise; private handleMessage; findDestination(id?: string): Promise; testDestination(destinationId: string): Promise; private hasAnyDestinationSubscribedToEvent; shouldSendMsg(msg: EventMessageTypes): boolean; close(): Promise; restart(): Promise; }