import type { RawSourceMap } from "source-map-js";
import { SourceMapConsumer } from "source-map-js";
declare class MapModifier {
    private readonly map?;
    constructor(map?: RawSourceMap | string);
    modify(f: (m: RawSourceMap) => void): this;
    modifySources(op: (source: string) => string): this;
    resolve(directory?: string): this;
    relative(directory?: string): this;
    toObject(): RawSourceMap | undefined;
    toString(): string | undefined;
    toConsumer(): SourceMapConsumer | undefined;
    toCommentData(): string;
    toCommentFile(fileName: string): string;
}
export declare const getMap: (code: string, id?: string) => Promise<string | undefined>;
export declare const stripMap: (code: string) => string;
export declare const mm: (map?: RawSourceMap | string) => MapModifier;
export {};
