UNPKG

1.5 kBTypeScriptView Raw
1import { FileDescriptorProto } from "google-protobuf/google/protobuf/descriptor_pb";
2import { ExportEnumEntry, ExportMessageEntry } from "./ExportMap";
3import { ServiceParameter, ModeParameter } from "./parameters";
4export declare function filePathToPseudoNamespace(filePath: string): string;
5export declare function throwError(message: string, includeUnexpectedBehaviourMessage?: boolean): never;
6export declare function stripPrefix(str: string, prefix: string): string;
7export declare function snakeToCamel(str: string): string;
8export declare function uppercaseFirst(str: string): string;
9export declare function isProto2(fileDescriptor: FileDescriptorProto): boolean;
10export declare function oneOfName(name: string): string;
11export declare function generateIndent(indentLevel: number): string;
12export declare function getPathToRoot(fileName: string): string;
13export declare function withinNamespaceFromExportEntry(name: string, exportEntry: ExportMessageEntry | ExportEnumEntry): string;
14export declare function replaceProtoSuffix(protoFilePath: string): string;
15export declare function withAllStdIn(callback: (buffer: Buffer) => void): void;
16export declare function normaliseFieldObjectName(name: string): string;
17export declare function getServiceParameter(service?: string): ServiceParameter;
18export declare function getModeParameter(mode?: string): ModeParameter;
19export declare function getParameterEnums(parameter: string): {
20 service: ServiceParameter;
21 mode: ModeParameter;
22};