/** * Platform detection and crypto backend selection. * * The backend is lazily loaded to support both conditional imports * and runtime detection. */ import type { CryptoBackend } from './types.js'; /** * Get the appropriate crypto backend for the current platform. * * This is the main entry point for obtaining crypto primitives. * The backend is cached after first load. * * @example * ```typescript * const crypto = await getCrypto(); * const hash = crypto.sha3_256(data); * ``` */ export declare function getCrypto(): Promise; /** * Get crypto backend synchronously. * * Only use this after getCrypto() has been called at least once, * or if you're certain about the platform and the backend is pre-loaded. * * @throws Error if backend hasn't been loaded yet */ export declare function getCryptoSync(): CryptoBackend; /** * Inject a custom crypto backend. * * Useful for testing or custom implementations. */ export declare function setCrypto(backend: CryptoBackend): void; //# sourceMappingURL=platform.d.ts.map