import type { DiagnosticWithLocation, Node } from 'typescript'; export declare class TransformerError extends Error { node?: Node | undefined; constructor(message: string, node?: Node | undefined); fillNodeIfEmpty(node: Node): void; } export declare function createDiagnosticsForError(error: TransformerError, ts: typeof import('typescript')): DiagnosticWithLocation;