import * as grpc from '@grpc/grpc-js'; import * as loader from '@grpc/proto-loader'; export interface ProtoMockServer { address: string; port: string; protos: MockProtoJson[]; } export interface MockProtoJson { path: string; pkg: string; options: loader.Options; services: MockServiceJson[]; } export declare type MockServiceJson = { name: string; methods: MockMethodJson[]; }; export declare type MockMethodJson = { name: string; output: { [key: string]: string; }; error?: { code?: number; metadata?: Record; details?: string; }; streamInterval?: number; }; export declare const enum RPCType { UNARY = "UNARY", SERVER_STREAMING = "SERVER_STREAMING", CLIENT_STREAMING = "CLIENT_STREAMING", DUPLEX_STREAMING = "DUPLEX_STREAMING" } export declare const run: (protoMockServer?: ProtoMockServer) => grpc.Server; //# sourceMappingURL=mocky.d.ts.map