/** * 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<<01a6425144638eaf4ca64fed4e0b35cb>> * * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js * Original file: packages/metro-source-map/src/Consumer/DelegatingConsumer.js * To regenerate, run: * js1 build metro-ts-defs (internal) OR * yarn run build-ts-defs (OSS) */ import type {MixedSourceMap} from '../source-map'; import type {LookupBias} from './constants.js'; import type {GeneratedPositionLookup, IConsumer, IterationOrder, Mapping, SourcePosition} from './types'; /** * A source map consumer that supports both "basic" and "indexed" source maps. * Uses `MappingsConsumer` and `SectionsConsumer` under the hood (via * `createConsumer`). */ declare class DelegatingConsumer implements IConsumer { static readonly GENERATED_ORDER: IterationOrder; static readonly ORIGINAL_ORDER: IterationOrder; static readonly GREATEST_LOWER_BOUND: LookupBias; static readonly LEAST_UPPER_BOUND: LookupBias; _rootConsumer: IConsumer; constructor(sourceMap: MixedSourceMap); originalPositionFor(generatedPosition: GeneratedPositionLookup): SourcePosition; generatedMappings(): Iterable; eachMapping(callback: (mapping: Mapping) => unknown, context?: unknown, order?: IterationOrder): void; get file(): null | undefined | string; sourceContentFor(source: string, nullOnMissing: true): null | undefined | string; } export default DelegatingConsumer;