/** * The mapping bookkeeping: each emitted JavaScript node gets an id and an * authoring span, and rendering the node writes the span into the generated * mappings. */ import { type Span } from "../source.ts"; import { type GeneratedMapping, type JavaScriptNode } from "./javascript.ts"; export interface SourceMapRecorderHost { readonly javaScriptNodeSpans: Map; nextJavaScriptNodeId: number; } export declare class SourceMapRecorder { private readonly host; constructor(host: SourceMapRecorderHost); emitJavaScriptNode(sourceSpan: Span, render: () => string): JavaScriptNode; markJavaScriptNode(node: JavaScriptNode): string; renderJavaScriptNode(node: JavaScriptNode): { readonly code: string; readonly mappings: readonly GeneratedMapping[]; }; } //# sourceMappingURL=source-map.d.ts.map