import { AnyMap, originalPositionFor, generatedPositionFor, eachMapping } from '@jridgewell/trace-mapping'; import { GenMapping, maybeAddMapping, toDecodedMap, toEncodedMap, setSourceContent } from '@jridgewell/gen-mapping'; import type { TraceMap, SourceMapInput, SectionedSourceMapInput, DecodedSourceMap } from '@jridgewell/trace-mapping'; export type { TraceMap, SourceMapInput, SectionedSourceMapInput, DecodedSourceMap }; import type { Mapping, EncodedSourceMap } from '@jridgewell/gen-mapping'; export type { Mapping, EncodedSourceMap }; export declare class SourceMapConsumer { private _map; file: TraceMap['file']; names: TraceMap['names']; sourceRoot: TraceMap['sourceRoot']; sources: TraceMap['sources']; sourcesContent: TraceMap['sourcesContent']; version: TraceMap['version']; constructor(map: ConstructorParameters[0], mapUrl: Parameters[1]); static fromSourceMap(map: SourceMapGenerator, mapUrl: Parameters[1]): SourceMapConsumer; get mappings(): string; originalPositionFor(needle: Parameters[1]): ReturnType; generatedPositionFor(originalPosition: Parameters[1]): ReturnType; allGeneratedPositionsFor(originalPosition: Parameters[1]): ReturnType[]; hasContentsOfAllSources(): boolean; sourceContentFor(source: string, nullOnMissing?: boolean): string | null; eachMapping(callback: Parameters[1], context?: any): void; destroy(): void; } export declare class SourceMapGenerator { private _map; constructor(opts: ConstructorParameters[0] | GenMapping); static fromSourceMap(consumer: SourceMapConsumer): SourceMapGenerator; addMapping(mapping: Parameters[1]): ReturnType; setSourceContent(source: Parameters[1], content: Parameters[2]): ReturnType; toJSON(): ReturnType; toString(): string; toDecodedMap(): ReturnType; }