import { Segment, StackNode } from 'muggle-string'; export * from 'muggle-string'; export interface Mapping { source?: string; sourceRange: [number, number]; generatedRange: [number, number]; data: T; } export interface Stack { source: string; range: [number, number]; } export declare class SourceMap { readonly mappings: Mapping[]; private _memo; private get memo(); constructor(mappings: Mapping[]); toSourceOffset(start: number, baseOnRight?: boolean): readonly [number, Mapping] | undefined; toGeneratedOffset(start: number, baseOnRight?: boolean): readonly [number, Mapping] | undefined; toSourceOffsets(start: number, baseOnRight?: boolean): Generator], void, unknown>; toGeneratedOffsets(start: number, baseOnRight?: boolean): Generator], void, unknown>; matching(startOffset: number, from: 'sourceRange' | 'generatedRange', to: 'sourceRange' | 'generatedRange', baseOnRight: boolean): Generator], void, unknown>; matchOffset(start: number, mappedFromRange: [number, number], mappedToRange: [number, number], baseOnRight: boolean): number | undefined; private binarySearchMemo; } export declare function buildMappings(chunks: Segment[]): Mapping[]; export declare function buildStacks(chunks: Segment[], stacks: StackNode[]): Stack[]; //# sourceMappingURL=index.d.ts.map