/** * Version utilities for the praisonai TypeScript package. * * Python parity: praisonaiagents/_version.py (`get_version`, `__version__`). * Python reads `pyproject.toml`; this module reads `package.json` so each * package keeps a single source of truth for its version. The value is read * once at import time and cached, exactly like `__version__` in Python. * * Resolution order (both work from `dist/` (CJS) and `dist/esm/`, because * scripts/esm-shim.js repoints relative `require()` calls in the ESM build at * the mirrored CommonJS location and supplies `__dirname`): * 1. `require('../package.json')` — src/version.ts and dist/version.js both * sit one level below the package root. * 2. Walk up from `__dirname` looking for a package.json named `praisonai`. * 3. `"unknown"`, with a runtime warning — Python warns RuntimeWarning and * returns "unknown" rather than breaking the import. */ /** * Read the package version from package.json. * * Python parity: `praisonaiagents._version.get_version()`. Never throws: on * failure it warns (when `process.emitWarning` exists) and returns "unknown", * matching the Python fallback. */ export declare function getVersion(): string; /** The package version, read once at import time. Python parity: `__version__`. */ export declare const VERSION: string; /** Python-spelled alias of {@link VERSION} (`praisonaiagents.__version__`). */ export declare const __version__: string;