import { InternalRuntimeError } from '../errors/base'; import type { Node } from '../types'; /** * Subclass of {@link InternalRuntimeError} thrown by the {@link assert} function. */ export declare class AssertionError extends InternalRuntimeError { constructor(explanation: string, node?: Node); } /** * Throws an {@link AssertionError} if the provided condition is false. This error should only be thrown * when internal `js-slang` code enters an unexpected state. This should never be thrown by user code. */ export default function assert(condition: boolean, message: string, node?: Node): asserts condition;