import PositionRange from '../core/positions.cjs'; /** * Represents the base error class in InternetObject. */ declare class IOError extends Error { #private; __proto__: Error; /** * An error-code associated with the current error. */ errorCode: string; /** * A fact object, which may contain additional information about the error. */ fact?: string; get positionRange(): PositionRange | undefined; set positionRange(value: PositionRange | undefined); /** * Backward-compat: some tests and callers expect `code` instead of `errorCode`. */ get code(): string; /** * Backward-compat: expose `position` alias for `positionRange` used by older tests. */ get position(): any; /** * Indicates whether the error is caused by EOF. */ isEof: boolean; /** * Initialize the new instance of `IOError`. * * @param errorCode {string} An error-code associated with this error * @param fact {string} The reason for the error * @param pos {Position} The position object, for tracking line and columns. Optional * @param isEof {boolean} Indicates whether the error is caused by EOF. Optional * @param ssf {Function} The start statck function, removes the irrelavant frames from the stack trace */ constructor(errorCode: string, fact?: string, positionRange?: PositionRange, isEof?: boolean, ssf?: any); protected updateMessage(): void; } export { IOError as default };