import { NativeModules } from 'react-native'; const { TorModule } = NativeModules; interface TorModuleInterface { start: () => void; restart: () => void; getTorStatus: () => void; sendWsOpen: (path: string) => Promise; sendWsClose: (path: string) => Promise; sendWsSend: (path: string, message: string) => Promise; sendRequest: (action: string, url: string, headers: string, body: string) => Promise; } export default TorModule as TorModuleInterface;