import * as grpc from '@grpc/grpc-js'; import { MockMethodJson, RPCType } from './mocky'; export declare const DEFAULT_STREAMING_INTERVAL = 1000; declare type Handler = UnaryHandler | ClientStreamingHandler | ServerStreamingHandler | DuplexStreamingHandler; declare type UnaryHandler = (call: grpc.ServerUnaryCall, Record>, cb: grpc.sendUnaryData>) => void; declare type ClientStreamingHandler = (call: grpc.ServerReadableStream, Record>, cb: grpc.sendUnaryData>) => void; declare type ServerStreamingHandler = (call: grpc.ServerWritableStream, Record>, cb: grpc.sendUnaryData>) => void; declare type DuplexStreamingHandler = (call: grpc.ServerDuplexStream, Record>) => void; export declare const makeHandler: (mockMethodJson: MockMethodJson, rpcType: RPCType) => Handler; export {}; //# sourceMappingURL=handler.d.ts.map