import { QuintError } from './quintError'; /** * An error message whose locations have been resolved. */ export interface ErrorMessage { explanation: string; locs: Loc[]; traceLocs?: Loc[]; } export interface Loc { source: string; start: { line: number; col: number; index: number; }; end?: { line: number; col: number; index: number; }; } /** * Map an identifier to the corresponding location in the source map, if possible. * @param sourceMap the source map * @param id the identifier to map * @returns the location, if found in the map, or the unknown location */ export declare function sourceIdToLoc(sourceMap: Map, id: bigint): Loc; export declare function resolveErrorLocation(sourceMap: Map, error: QuintError): Loc | undefined; export declare function resolveTraceLocations(sourceMap: Map, error: QuintError): Loc[] | undefined; export declare function fromQuintError(sourceMap: Map): (_: QuintError) => ErrorMessage;