import { GrpcMethod } from '../types'; export declare const GRPC_METHODS = "grpc:methods"; /** * This decorator provides a way to configure GRPC Micro Services within LoopBack 4 * @param params * * @example * * myproject/controllers/greeter/Greeter.ts * myproject/controllers/greeter/greeter.proto * myproject/controllers/greeter/greeter.proto.ts * * Note: greeter.proto.ts is automatically generated from * greeter.proto * * ```ts * import {Greeter, HelloRequest, HelloReply} from 'greeter.proto'; * * class GreeterCtrl implements Greeter.Service { * @grpc(Greeter.SayHello) * public sayHello(request: HelloRequest): HelloResponse { * return { message: 'Hello ' + call.request.name }; * } * } * ``` */ export declare function grpc(spec: GrpcMethod): MethodDecorator;