ssap_app/node_modules/@expo/metro/metro-source-map/Consumer/MappingsConsumer.d.ts

32 lines
1.3 KiB
TypeScript

/**
* 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 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<Mapping>;
_normalizedSources: null | undefined | ReadonlyArray<string>;
constructor(sourceMap: BasicSourceMap);
originalPositionFor(generatedPosition: GeneratedPositionLookup): SourcePosition;
_decodeMappings(): Generator<Mapping, void, void>;
_normalizeAndCacheSources(): ReadonlyArray<string>;
_decodeAndCacheMappings(): ReadonlyArray<Mapping>;
generatedMappings(): Iterable<Mapping>;
_indexOfSource(source: string): null | undefined | number;
sourceContentFor(source: string, nullOnMissing: true): null | undefined | string;
}
export default MappingsConsumer;