/** * Read the nearest enclosing package.json's `version` field. * * Pass `import.meta.url` from the calling module. The function walks * up from that module's directory until it finds a package.json, then * returns its `version`. This is the standard way for a Tool to set * its `metadata.version` without duplicating the literal in source. * * Result is cached per `metaUrl` so subsequent calls from the same * module are O(1). * * Returns `'0.0.0'` if no package.json is found or if it lacks a * version field — Tools should treat that as "version unknown" rather * than crash. In practice this only happens in malformed installs. */ export declare function readPackageVersion(metaUrl: string): string; //# sourceMappingURL=package-version.d.ts.map