import * as grpc from '@grpc/grpc-js'; import { DBHandlers } from './db/DB'; import { RuleHandlers } from './rule/Rule'; import { TestHandlers } from './test/Test'; import { ServiceType } from './common'; export interface GrpcServerCfg { name?: string; host?: string; port?: number; services: { type: ServiceType; handlers?: DBHandlers | RuleHandlers | TestHandlers; }[]; } export declare function createGrpcServer(cfg: GrpcServerCfg): grpc.Server;