import { SourceLocation } from "../parser/SourceRange.js"; export declare enum AiTypeErrorKind { AlreadyDeclaredVariable = 0, NotAssignableType = 1, CanNotCall = 2, MissingArgumentError = 3, InvalidArgumentError = 4, CanNotAssignToImmutableVariable = 5, UnDeclaredVariable = 6, CanNotReadProperty = 7 } export declare class AiTypeError extends Error { kind: AiTypeErrorKind; location: SourceLocation; constructor(kind: AiTypeErrorKind, location: SourceLocation); } export declare class AiAlreadyDeclaredVariableError extends AiTypeError { name: string; constructor(name: string, location: SourceLocation); } export declare class AiNotAssignableTypeError extends AiTypeError { left: string; right: string; constructor(left: string, right: string, location: SourceLocation); } export declare class AiCanNotCallError extends AiTypeError { type: string; constructor(type: string, location: SourceLocation); } export declare class AiMissingArgumentError extends AiTypeError { pos: number; expectType: string; constructor(pos: number, expectType: string, location: SourceLocation); } export declare class AiInvalidArgumentError extends AiTypeError { pos: number; expectType: string; butType: string; constructor(pos: number, expectType: string, butType: string, location: SourceLocation); } export declare class AiCanNotAssignToImmutableVariableError extends AiTypeError { name: string; constructor(name: string, location: SourceLocation); } export declare class AiUnDeclaredVariableError extends AiTypeError { name: string; constructor(name: string, location: SourceLocation); } export declare class AiCanNotReadPropertyError extends AiTypeError { targetType: string; name: string; constructor(targetType: string, name: string, location: SourceLocation); }