adbkit.d.ts 750 B

1234567891011121314151617181920212223242526272829303132333435
  1. // import * as a from "adbkit";
  2. declare module "adbkit" {
  3. import { ReadStream } from "fs";
  4. export interface TcpUsbServer { }
  5. export interface Connection { }
  6. export interface Device {
  7. id: string;
  8. type: string;
  9. }
  10. export interface Client {
  11. createTcpUsbBridge(serial: string): TcpUsbServer;
  12. connection(): Promise<Connection>;
  13. version(): any;
  14. listDevices(): Promise<Device[]>;
  15. screencap(serial: string): Promise<ReadStream>;
  16. }
  17. export interface ClientOptions {
  18. host?: string;
  19. port?: number;
  20. bin?: string;
  21. }
  22. export function createClient(options?: ClientOptions): Client;
  23. export var KeyCode: any;
  24. export var util: any;
  25. }