tenebrous-dicebot/api/node_modules/ts-protoc-gen/lib/ExportMap.d.ts

29 lines
967 B
TypeScript
Raw Normal View History

import { FileDescriptorProto, DescriptorProto, MessageOptions, EnumOptions, FieldDescriptorProto } from "google-protobuf/google/protobuf/descriptor_pb";
import Type = FieldDescriptorProto.Type;
export declare type ExportMessageEntry = {
pkg: string;
fileName: string;
messageOptions: MessageOptions;
mapFieldOptions?: {
key: [Type, string];
value: [Type, string];
};
};
export declare type ExportEnumEntry = {
pkg: string;
fileName: string;
enumOptions: EnumOptions;
};
export declare class ExportMap {
messageMap: {
[key: string]: ExportMessageEntry;
};
enumMap: {
[key: string]: ExportEnumEntry;
};
exportNested(scope: string, fileDescriptor: FileDescriptorProto, message: DescriptorProto): void;
addFileDescriptor(fileDescriptor: FileDescriptorProto): void;
getMessage(str: string): ExportMessageEntry | undefined;
getEnum(str: string): ExportEnumEntry | undefined;
}