import * as grpc from '@grpc/grpc-js'; export declare class GrpcMockServer { readonly serverAddress: string; private readonly _server; constructor(serverAddress?: string); /** * Adds a gRPC service to the mock server. * * @param protoPath - Path to the proto file, or array of proto file paths (for modular protos). * @param pkgName - The package name defined in the proto. * @param serviceName - The service name defined in the proto. * @param implementations - The service implementation object. * @param protoLoadOptions - Options for proto-loader. Use `includeDirs` to specify import paths for modular protos. * @returns The GrpcMockServer instance. * * Example usage for modular protos: * server.addService([ * 'user/user.proto', * 'common/address.proto' * ], 'user', 'UserService', impl, { * includeDirs: ['common'] * }); */ addService(protoPath: string | string[], pkgName: string, serviceName: string, implementations: any, protoLoadOptions?: any): GrpcMockServer; get server(): grpc.Server; start(): Promise; stop(): Promise; }