/** * This is a copy of the codeFrame function from Babel * @see https://github.com/babel/babel/blob/85e649203b61b7c908eb04c05511a0d35f893e8e/packages/babel-code-frame/src/index.ts#L68-L143 * * MIT License * * Copyright (c) 2014-present Sebastian McKenzie and other contributors */ /** * Extract what lines should be marked and highlighted. */ import type { CodeFrameNodeLocation } from "./types.d.ts"; type MarkerLines = Record; declare const getMarkerLines: (loc: CodeFrameNodeLocation, source: string[], linesAbove: number, linesBelow: number) => { end: number; markerLines: MarkerLines; start: number; }; export default getMarkerLines;