import { StatsError } from 'webpack';
import { CompileError } from './parsers';
export declare const COMPILE_ERROR_NEEDLES_RE: RegExp[];
export declare function resolveErrorType(error: Error | StatsError): 'compile' | 'runtime';
/**
 * Tries to parse error location from an error. Which can be
 * either webpack stats error or simple Error object.
 *
 * @param {StatsError | Error} error webpack stats object or error instance.
 * @returns {CompileError | null} Parsed compile error.
 */
export declare function parseCompileError(error: StatsError | Error): CompileError | null;
export { type CompileError };
