diff --git a/src/react-app-env.d.ts b/src/react-app-env.d.ts
index 6431bc5..12c6ef2 100644
--- a/src/react-app-env.d.ts
+++ b/src/react-app-env.d.ts
@@ -1 +1,16 @@
///
+
+// TODO: Type the rest of the API and contribute it to the wormhole-crypto project
+declare module 'wormhole-crypto' {
+ export class Keychain {
+ constructor(key: Uint8Array, salt: Uint8Array)
+
+ encryptStream(ReadableStream): Promise
+
+ decryptStream(ReadableStream): Promise
+ }
+
+ export const plaintextSize = number => number
+
+ export const encryptedSize = number => number
+}
diff --git a/src/services/FileTransfer/FileTransfer.ts b/src/services/FileTransfer/FileTransfer.ts
index e0407fc..687233b 100644
--- a/src/services/FileTransfer/FileTransfer.ts
+++ b/src/services/FileTransfer/FileTransfer.ts
@@ -1,6 +1,5 @@
import WebTorrent, { Torrent, TorrentFile } from 'webtorrent'
import streamSaver from 'streamsaver'
-// @ts-ignore
import { Keychain, plaintextSize, encryptedSize } from 'wormhole-crypto'
// @ts-ignore
import idbChunkStore from 'idb-chunk-store'