/** * OpenQASM version detection and management utilities * * Handles version detection from QASM source code and provides utilities * for working with different OpenQASM versions. Supports automatic version * detection from OPENQASM statements and manual version specification. * * @module Version Management * * @example Version detection * ```typescript * const version = new OpenQASMVersion(3, 0); * console.log(version.toString()); // "3.0" * console.log(version.isVersion3()); // true * ``` */ /** Enum representing the major OpenQASM versions. */ declare enum OpenQASMMajorVersion { Version2 = 2, Version3 = 3 } /** Class representing the OpenQASM version. */ declare class OpenQASMVersion { /** The major OpenQASM version. */ major: OpenQASMMajorVersion; /** The minor OpenQASM version. */ minor: number; /** * Creates an OpenQASMVersion instance. * @param major - The OpenQASM major version. (optional) * @param minor - The OpenQASM minor version (optional) */ constructor(major?: OpenQASMMajorVersion, minor?: number); /** Returns the version as a formatted string. */ toString(): string; /** Returns whether the version is 3.x */ isVersion3(): boolean; /** Returns whether the version is 2.x */ isVersion2(): boolean; } export { OpenQASMMajorVersion, OpenQASMVersion };