/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @noformat * @oncall react_native * @generated SignedSource<<26fabb3db2058dda9c2a6e56de4728ce>> * * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js * Original file: packages/metro-source-map/src/B64Builder.js * To regenerate, run: * js1 build metro-ts-defs (internal) OR * yarn run build-ts-defs (OSS) */ /** * Efficient builder for base64 VLQ mappings strings. * * This class uses a buffer that is preallocated with one megabyte and is * reallocated dynamically as needed, doubling its size. * * Encoding never creates any complex value types (strings, objects), and only * writes character values to the buffer. * * For details about source map terminology and specification, check * https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit */ declare class B64Builder { buffer: Buffer; pos: number; hasSegment: boolean; constructor(); /** * Adds `n` markers for generated lines to the mappings. */ markLines(n: number): this; /** * Starts a segment at the specified column offset in the current line. */ startSegment(column: number): this; /** * Appends a single number to the mappings. */ append(value: number): this; /** * Returns the string representation of the mappings. */ toString(): string; _writeByte(byte: number): void; _realloc(): void; } export default B64Builder;