import type * as binding from "@rspack/binding";
export type RspackError = binding.JsRspackError;
export type RspackSeverity = binding.JsRspackSeverity;
export declare class JsRspackDiagnostic {
    static __to_binding(error: Error | RspackError, severity: RspackSeverity): binding.JsRspackDiagnostic;
}
export declare class NonErrorEmittedError extends Error {
    constructor(error: Error);
}
