/// import type { Location } from "./lexer"; export declare class BrsError extends Error { readonly location: Location; constructor(message: string, location: Location); /** * Formats the error into a human-readable string including filename, starting and ending line * and column, and the message associated with the error, e.g.: * * `lorem.brs(1,1-3): Expected '(' after sub name` * @see BrsError#format */ format(): string; /** * Formats a location and message into a human-readable string including filename, starting * and ending line and column, and the message associated with the error, e.g.: * * `lorem.brs(1,1-3): Expected '(' after sub name` * * @param message a string describing the error * @param location where the error occurred */ static format(message: string, location: Location): string; } /** * Logs a detected BRS error to console. * @param err the error to log to console */ export declare function logConsoleError(err: BrsError): void; /** * Produces a function that writes errors to the given error stream. * @param errorStream write stream to write errors to. * @returns function that writes to given write stream. */ export declare function getLoggerUsing(errorStream: NodeJS.WriteStream): (err: BrsError) => boolean;