/** * SDK package version, injected at build time. * * tsup's `define` (see `tsup.config.ts`) replaces the literal * `process.env.SDK_VERSION` token with the package version string when the * dist bundle is produced. That dist is what NPM publishes and what external * consumers resolve via the `main`/`module` exports. * * In source-mode consumers (anything resolving the `source` export * condition) tsup never runs, so the read falls through to a real * `process.env.SDK_VERSION` env-var lookup — usually unset, hence the * "unknown" fallback. The `typeof process` guard keeps the source-mode read * safe in browsers where `process` is undefined; the additional * `process.env` check covers oddly-shimmed environments where `process` * exists but `process.env` doesn't (some bundler polyfills), preventing a * TypeError on member access. * * The literal `process.env.SDK_VERSION` member access has to stay textually * intact in this expression so esbuild's `define` matches and substitutes * it; the surrounding guards don't interfere with that match. * * This pattern is intentionally different from the runtime env reads in * `constants.ts` (`globalThis.process?.env?.X`): those must NOT be inlined * because they're per-consumer config; this one MUST be inlined because * it's a fixed, package-published value. */ export declare const SDK_VERSION: string; //# sourceMappingURL=sdk-version.d.ts.map