///
import { Message, Type } from "protobufjs";
import { Grpc, Http } from "./codes";
import { ServiceImplementation } from "../interface";
export interface IHandleResponse {
status: Grpc;
statusCode: Http;
statusMessage: string;
response: T | null;
error: Error | null;
}
export declare class HandleRequest {
requestType: Type;
responseType: Type;
implementation: ServiceImplementation;
constructor(requestType: Type, responseType: Type, implementation: ServiceImplementation);
handleBuffer(body: Buffer): Promise>;
handleObject(body: object, options?: object): Promise>;
handle(request: Message): Promise>>;
}