import { ClientProxy } from '@nestjs/microservices';
import { Observable } from 'rxjs';
type PatternType = string | {
    cmd: string;
};
export declare class MessagingService {
    private readonly client;
    constructor(client: ClientProxy);
    send<TInput = any, TOutput = any>(pattern: PatternType, data: TInput): Observable<TOutput>;
    emit<TInput = any>(pattern: PatternType, data: TInput): Observable<void>;
}
export {};
