import { CodePosition } from '../types/Ast.type'; import { Token } from '../classes/Lexer'; export interface ErrorContext { codePos?: CodePosition; code?: string; token?: Token; message: string; } /** * Format an error message with code context * * @param context - Error context with position and code information * @returns Formatted error message with code snippet */ export declare function formatErrorWithContext(context: ErrorContext): string; /** * Create an error with code context * * @param context - Error context * @returns Error object with formatted message */ export declare function createErrorWithContext(context: ErrorContext): Error;