Package
TypeScript
The SDK is written in TypeScript and ships with full type declarations. No additional@types packages are needed.
Minimum TypeScript version: 5.0.
Add the following to your tsconfig.json if you are targeting Node.js:
Import Paths
The SDK exposes several sub-path imports to keep bundles lean:@umbra-privacy/sdk- All implementation modules: client, services, Solana providers, cryptography@umbra-privacy/sdk/types- Branded type definitions and type assertions only@umbra-privacy/sdk/interfaces- Function type signatures (useful for typing your own wrappers)@umbra-privacy/sdk/utils- Unit converters and encoding utilities@umbra-privacy/sdk/constants- Protocol constants (program ID, seeds, max tree depth, etc.)@umbra-privacy/sdk/errors- Error classes and type guard functions
@umbra-privacy/sdk import.
Runtime Requirements
The SDK works in both Node.js (18+) and modern browser environments. It has no native dependencies - all cryptography is pure TypeScript/WebAssembly.If you are using a bundler (Vite, webpack, Next.js), no special configuration is needed. The SDK uses standard ES module syntax.