import type { IBrokerMessageRoutingOptions, IMessageBrokerService } from '../../types'; export declare class NatsService implements IMessageBrokerService { private config; private connection; private sc; constructor(config: { servers: string[]; subject: string; token?: string; user?: string; pass?: string; tls?: boolean; }); connect(): Promise; publish(topic: string, message: object, options?: IBrokerMessageRoutingOptions): Promise; subscribe(topic: string, callback: (message: object) => Promise, options?: IBrokerMessageRoutingOptions): Promise; disconnect(): Promise; }