UNPKG

@launchdarkly/react-native-client-sdk

Version:
14 lines 578 B
import type { Crypto, Hmac } from '@launchdarkly/js-client-sdk-common'; import PlatformHasher from './PlatformHasher'; import { SupportedHashAlgorithm } from './types'; /** * Uses crypto-js as substitute to node:crypto because the latter * is not yet supported in some runtimes. * https://cryptojs.gitbook.io/docs/ */ export default class PlatformCrypto implements Crypto { createHash(algorithm: SupportedHashAlgorithm): PlatformHasher; createHmac(algorithm: SupportedHashAlgorithm, key: string): Hmac; randomUUID(): string; } //# sourceMappingURL=index.d.ts.map