/** * Provides functions for checking KoLmafia's version and revision. * * @packageDocumentation */ /** * Represents an exception thrown when the current KoLmafia version does not * match an expected condition. */ export declare class KolmafiaVersionError extends Error { constructor(message?: string); } /** * If KoLmafia's revision number is less than `revision`, throws an exception. * Otherwise, does nothing. * * This behaves like the `since rXXX;` statement in ASH. * * @param revision Revision number * @throws {KolmafiaVersionError} * If KoLmafia's revision number is less than `revision`. * @throws {TypeError} If `revision` is not an integer * @example * ```ts * // Throws if KoLmafia revision is less than r20500 * sinceKolmafiaRevision(20500); * ``` */ export declare function sinceKolmafiaRevision(revision: number): void; /** * If KoLmafia's version is less than `majorVersion.minorVersion`, throws an * exception. * Otherwise, does nothing. * * This behaves like the `since X.Y;` statement in ASH. * * @param majorVersion Major version number * @param minorVersion Minor version number * @deprecated Point versions are no longer released by KoLmafia * @throws {KolmafiaVersionError} * If KoLmafia's major version is less than `majorVersion`, or if the major * versions are equal but the minor version is less than `minorVersion` * @throws {TypeError} * If either `majorVersion` or `minorVersion` are not integers * @example * ```ts * // Throws if KoLmafia version is less than 20.7 * sinceKolmafiaVersion(20, 7); * ``` */ export declare function sinceKolmafiaVersion(majorVersion: number, minorVersion: number): void;