UNPKG

@hzabala/tplinkcloud-api-client

Version:

<p align="left"> <a href="./LICENSE.md"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="License MIT"/></a> <p>

7 lines (6 loc) 446 B
import { CipherParam, KeyPair, DeviceInfo } from './types'; export declare const generateKeyPair: () => KeyPair; export declare const decryptHandshakeKey: (key: string, privateKey: any) => CipherParam; export declare const encrypt: (cipherParam: CipherParam, payload: any) => string; export declare const decrypt: (cipherParam: CipherParam, payload: any) => string; export declare const getLocalDevices: (token: string) => Promise<DeviceInfo[]>;