UNPKG

576 BTypeScriptView Raw
1import * as protobuf from 'protobufjs';
2export interface GoogleProtoFilesRootOptions {
3 [index: string]: any;
4}
5export declare class GoogleProtoFilesRoot extends protobuf.Root {
6 constructor(options?: GoogleProtoFilesRootOptions);
7 static getCommonProtoFiles(): string[];
8 resolvePath(_: string, includePath: string, alreadyNormalized?: boolean): string;
9}
10export declare function loadSync(filename: string, options?: protobuf.IParseOptions): protobuf.Root;
11export declare function load(filename: string, options?: protobuf.IParseOptions): Promise<protobuf.Root>;