import { NaclInterface } from './nacl_types' ; let lib ; try { if ( process . env . NACL_FAST === 'disable' ) { throw new Error ( 'Use tweetnacl' ) ; } lib = require ( './fast' ) ; } catch ( err ) { process . env . NACL_FAST = 'disable' ; lib = require ( './slow' ) ; } export const NACL_SIGN_PUBLICKEY_LENGTH = 32 ; export const NACL_SIGN_SIGNATURE_LENGTH = 64 ; export const { box , openBox , signDetached , verifyDetached , getRandomBytes , getKeyPair , } = lib ;