import { GrpcObject } from 'grpc'; import { Namespace, Root, Service, Service as ProtoService } from 'protobufjs'; export interface Proto { fileName: string; filePath: string; protoText: string; ast: GrpcObject; root: Root; } /** * Proto ast from filename */ export declare function fromFileName(protoPath: string, includeDirs?: string[]): Promise; /** * Walk through services */ export declare function walkServices(proto: Proto, onService: (service: Service, def: any, serviceName: string) => void): void; export declare function walkNamespace(root: Root, onNamespace: (namespace: Namespace) => void, parentNamespace?: Namespace): void; export declare function serviceByName(root: Root, serviceName: string): ProtoService;