/** * Read this package's own version from its `package.json` (phase 181, T5). * * Resolved relative to this module's own location (`src/version.ts` under * vitest/ts-node, `dist/version.js` once built) rather than `process.cwd()`, * so it works regardless of what repo the CLI/MCP server is currently * operating on via `--repo`. `dist/version.js` sits directly under `dist/`, * which is a sibling of `package.json` — same for `src/version.ts` under * `src/` — so one `..` reaches the package root in both cases. * * Moved here from `cli/commands/mcp.ts` (phase 181, T5 architecture fix): * `packages/core/src/mcp/trust/enforce.ts` (a core MCP-module file) also * needs "the current running version" to compare against a trust grant's * `grantedVersion`, and importing a CLI-command file from a core MCP module * would be a backwards dependency. This is the shared home for both callers. */ export declare function readPackageVersion(): string; //# sourceMappingURL=version.d.ts.map