/** * 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. * * @format * @oncall react_native */ import type {BasicSourceMap} from '../source-map'; import type { GeneratedPositionLookup, IConsumer, Mapping, SourcePosition, } from './types'; import type {Number0} from 'ob1'; import AbstractConsumer from './AbstractConsumer'; /** * A source map consumer that supports "basic" source maps (that have a * `mappings` field and no sections). */ declare class MappingsConsumer extends AbstractConsumer implements IConsumer { _sourceMap: BasicSourceMap; _decodedMappings: null | undefined | ReadonlyArray; _normalizedSources: null | undefined | ReadonlyArray; constructor(sourceMap: BasicSourceMap); originalPositionFor( generatedPosition: GeneratedPositionLookup, ): SourcePosition; _decodeMappings(): Generator; _normalizeAndCacheSources(): ReadonlyArray; _decodeAndCacheMappings(): ReadonlyArray; generatedMappings(): Iterable; _indexOfSource(source: string): null | undefined | Number0; sourceContentFor( source: string, nullOnMissing: true, ): null | undefined | string; } export default MappingsConsumer;