UNPKG

@bufbuild/protobuf

Version:

A complete implementation of Protocol Buffers in TypeScript, suitable for web browsers and Node.js.

14 lines (13 loc) 445 B
import { type DescEnum, ScalarType } from "../descriptors.js"; /** * Parse an enum value from the Protobuf text format. * * @private */ export declare function parseTextFormatEnumValue(descEnum: DescEnum, value: string): number; /** * Parse a scalar value from the Protobuf text format. * * @private */ export declare function parseTextFormatScalarValue(type: ScalarType, value: string): number | boolean | string | bigint | Uint8Array;