mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-14 11:26:24 +00:00
15 lines
502 B
TypeScript
15 lines
502 B
TypeScript
import { NativeModules } from 'react-native';
|
|
const { TorModule } = NativeModules;
|
|
|
|
interface TorModuleInterface {
|
|
start: () => void;
|
|
restart: () => void;
|
|
getTorStatus: () => void;
|
|
sendWsOpen: (path: string) => Promise<boolean>;
|
|
sendWsClose: (path: string) => Promise<boolean>;
|
|
sendWsSend: (path: string, message: string) => Promise<boolean>;
|
|
sendRequest: (action: string, url: string, headers: string, body: string) => Promise<string>;
|
|
}
|
|
|
|
export default TorModule as TorModuleInterface;
|