forked from projectmoon/tenebrous-dicebot
29 lines
967 B
TypeScript
29 lines
967 B
TypeScript
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;
|
|
}
|