first commit

This commit is contained in:
2026-03-10 16:18:05 +00:00
commit 11f9c069b5
31635 changed files with 3187747 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
import type { FBSourceFunctionMap } from "./source-map";
import type { PluginObj } from "@babel/core";
import type { Node } from "@babel/types";
export interface Position {
line: number;
column: number;
}
export interface RangeMapping {
name: string;
start: Position;
}
export interface Context {
filename?: null | undefined | string;
}
declare function generateFunctionMap(ast: Node, context?: Context): FBSourceFunctionMap;
declare function generateFunctionMappingsArray(ast: Node, context?: Context): ReadonlyArray<RangeMapping>;
declare function functionMapBabelPlugin(): PluginObj;
export { functionMapBabelPlugin, generateFunctionMap, generateFunctionMappingsArray };