import type { SourceLocation } from 'estree'; import { ErrorSeverity, ErrorType, SourceErrorWithNode, type SourceError } from '../errors/base'; import type { Node } from '../types'; export declare class MissingSemicolonError implements SourceError { location: SourceLocation; type: ErrorType; severity: ErrorSeverity; constructor(location: SourceLocation); explain(): string; elaborate(): string; } export declare class TrailingCommaError implements SourceError { location: SourceLocation; type: ErrorType.SYNTAX; severity: ErrorSeverity.WARNING; constructor(location: SourceLocation); explain(): string; elaborate(): string; } export declare class FatalSyntaxError implements SourceError { location: SourceLocation; message: string; type: ErrorType; severity: ErrorSeverity; constructor(location: SourceLocation, message: string); explain(): string; elaborate(): string; } export declare class DisallowedConstructError extends SourceErrorWithNode { type: ErrorType; severity: ErrorSeverity; nodeType: string; constructor(node: Node); explain(): string; elaborate(): string; /** * Converts estree node.type into english * e.g. ThisExpression -> 'this' expressions * Property -> Properties * EmptyStatement -> Empty Statements */ private formatNodeType; } export declare abstract class RuleError extends SourceErrorWithNode { type: ErrorType; severity: ErrorSeverity; }