import { BaseEventHandler } from "./BaseEventHandler";
import { Payload } from "../model/Payload";
import { OpResult } from '../config/OpResult';
export declare class Consumer {
    private pulsarMasterFactory;
    private pulsarSlaveFactory;
    consume(payload: Payload, baseEventHandler: BaseEventHandler): Promise<void>;
    private consumeFromPulsar;
    /**
     * 校验版本参数等是否符合
     * @param msg
     * @returns
     */
    checkParam(msg: any): Promise<OpResult<any>>;
}
