import { LocationRange } from "../ast/types.js"; import { FrameStack } from "./FrameStack.js"; export declare class StackTraceFrame { name: string; location?: LocationRange | undefined; constructor(name: string, location?: LocationRange | undefined); toString(): string; } export declare class StackTrace { frames: StackTraceFrame[]; location?: LocationRange | undefined; private constructor(); static make(frameStack: FrameStack, location?: LocationRange): StackTrace; toString(): string; getTopFrame(): StackTraceFrame | undefined; getTopLocation(): LocationRange | undefined; isEmpty(): boolean; serialize(): SerializedStackTrace; static deserialize(data: SerializedStackTrace): StackTrace; } export type SerializedStackTrace = { frames: { name: string; location: LocationRange | null; }[]; location: LocationRange | null; }; //# sourceMappingURL=StackTrace.d.ts.map