import { type RawSourceMap } from 'source-map'; import type { SourceError } from '../errors/base'; export declare function getPositionWithSourceMap(line: number, column: number, sourceMap: RawSourceMap): Promise<{ line: number; column: number; identifier: string; source: string | null; }>; /** * Converts native errors to SourceError * * @param error * @param sourceMap * @returns */ export declare function toSourceError(error: Error, sourceMap?: RawSourceMap): Promise;