import type { ITtscCompileResult } from "@ttsc/wasm"; import type { ICompilerService } from "../structures/ICompilerService"; /** * Convert a `@ttsc/wasm` diagnostic into the playground's normalized shape. * * Falls back to computing line/column from the source text when the wasm * diagnostic did not carry them (some plugin emitters drop them). */ export declare function mapDiagnostic(diag: NonNullable[number], source: string): ICompilerService.IDiagnostic;