import { LocationRange } from "../ast/types.js"; import { ICompileError, IError, IRuntimeError } from "../errors/IError.js"; import { StackTraceFrame } from "../reducer/StackTrace.js"; import { Import } from "./SqProject/SqModule.js"; export declare function wrapIError(err: IError): SqError; declare abstract class SqAbstractError { abstract tag: T; abstract toString(): string; abstract toStringWithDetails(): string; } export declare class SqFrame { private _value; constructor(_value: StackTraceFrame); name(): string; location(): LocationRange | undefined; } export declare class SqRuntimeError extends SqAbstractError<"runtime"> { private _value; tag: "runtime"; constructor(_value: IRuntimeError); toString(): string; toStringWithDetails(): string; getFrameArray(): SqFrame[]; location(): LocationRange | undefined; } export declare class SqCompileError extends SqAbstractError<"compile"> { _value: ICompileError; tag: "compile"; constructor(_value: ICompileError); toString(): string; toStringWithDetails(): string; location(): LocationRange; } export declare class SqImportError extends SqAbstractError<"import"> { private _value; private _imp; tag: "import"; constructor(_value: SqError, _imp: Import); wrappedError(): SqRuntimeError | SqCompileError | SqOtherError; getFrameArray(): SqFrame[]; location(): LocationRange; toString(): string; toStringWithDetails(): string; } export declare class SqOtherError extends SqAbstractError<"other"> { private _value; tag: "other"; constructor(_value: string); toString(): string; toStringWithDetails(): string; } export type SqError = SqRuntimeError | SqCompileError | SqImportError | SqOtherError; export declare class SqErrorList { private _value; constructor(_value: SqError[]); get errors(): SqError[]; toString(): string; toStringWithDetails(): string; } export {}; //# sourceMappingURL=SqError.d.ts.map