diff --git a/keyserver/addons/rust-node-addon/rust-binding-types.js b/keyserver/addons/rust-node-addon/rust-binding-types.js --- a/keyserver/addons/rust-node-addon/rust-binding-types.js +++ b/keyserver/addons/rust-node-addon/rust-binding-types.js @@ -2,19 +2,6 @@ import type { SignedIdentityKeysBlob } from 'lib/types/crypto-types.js'; -type tunnelbrokerOnReceiveCallback = ( - err: Error | null, - payload: string, -) => mixed; - -declare class TunnelbrokerClientClass { - constructor( - deviceId: string, - onReceiveCallback: tunnelbrokerOnReceiveCallback, - ): TunnelbrokerClientClass; - publish(toDeviceId: string, payload: string): Promise; -} - type RustNativeBindingAPI = { +registerUser: ( username: string, @@ -26,7 +13,6 @@ message: string, signature: string, ) => Promise, - +TunnelbrokerClient: Class, }; export type { RustNativeBindingAPI };