{"version":3,"file":"diagnostics.mjs","names":[],"sources":["../../src/errors/diagnostics.ts"],"sourcesContent":["import {\n  createDiagnosticMessage,\n  formatDiagnosticErrorDetails,\n  type DiagnosticMessageInput,\n} from 'generaltranslation/internal';\n\ntype GtNextDiagnosticInput = Omit<DiagnosticMessageInput, 'source'>;\n\nexport function createGtNextDiagnostic(input: GtNextDiagnosticInput): string {\n  return createDiagnosticMessage({\n    source: 'gt-next',\n    ...input,\n  });\n}\n\nexport function createGtNextPluginDiagnostic(\n  input: GtNextDiagnosticInput\n): string {\n  return createDiagnosticMessage({\n    source: 'gt-next (plugin)',\n    ...input,\n  });\n}\n\nexport { formatDiagnosticErrorDetails };\n"],"mappings":";;AAQA,SAAgB,uBAAuB,OAAsC;AAC3E,QAAO,wBAAwB;EAC7B,QAAQ;EACR,GAAG;EACJ,CAAC;;AAGJ,SAAgB,6BACd,OACQ;AACR,QAAO,wBAAwB;EAC7B,QAAQ;EACR,GAAG;EACJ,CAAC"}