import type { RawIndexMap, RawSourceMap } from 'source-map'; interface StackFrameLike { file: string | null; } export declare function escapeSourceName(source: string): string; export declare function decodeSourceName(source: string): string; /** * Prepare a raw source map for `SourceMapConsumer`: replace webpack source * URLs that would make it reject the map and escape every source name, so * names returned by the consumer can be restored with `decodeSourceName`. */ export declare function prepareSourceMap(rawSourceMap: string | Buffer): RawSourceMap | RawIndexMap; export declare function isGeneratedBundleFrame(frame: StackFrameLike): boolean; export declare function isSymbolicatableFrame(frame: T): frame is T & { file: string; }; export {};