/** * These changes are made in this way so the interface does not change. * It would be good to change this down the line and credo-ts gets a rework on * the crypto interfaces. * */ export interface SecureEnvironment { generateKeypair(keyId: string, biometricsBacked?: boolean): Promise | Uint8Array; /** * * @todo Might be better to make this optional * * Returns an object where each key is the `keyId` and the value is the public key bytes * */ batchGenerateKeyPair(keyIds: Array, biometricsBacked?: boolean): Promise> | Record; getPublicBytesForKeyId(keyId: string): Promise | Uint8Array; sign(keyId: string, message: Uint8Array, biometricsBacked?: boolean): Promise; deleteKey(keyId: string): Promise | void; } export declare let isExpoSecureEnvironmentSupported: boolean; export declare const setFallbackSecureEnvironment: (env: SecureEnvironment) => void; export declare const getSecureEnvironment: () => SecureEnvironment; export declare const shouldUseFallbackSecureEnvironment: (useFallback: boolean) => void; export declare const isLocalSecureEnvironmentSupported: () => boolean; //# sourceMappingURL=SecureEnvironment.d.ts.map