global.d.ts 646 B

12345678910111213141516171819202122232425262728
  1. interface Point {
  2. x: number;
  3. y: number;
  4. }
  5. declare function sleep(n: number): void;
  6. declare function currentPackage(): string;
  7. declare function currentActivity(): string;
  8. declare function setClip(test: string): void;
  9. declare function getClip(): string;
  10. declare function toast(message: string): void;
  11. declare function toastLog(message: string): void;
  12. declare function waitForActivity(activity: string, period?: number): void;
  13. declare function waitForPackage(packageName: string, period?: number): void;
  14. declare function exit(): void;
  15. declare function random(): number;
  16. declare function random(min: number, max: number): number;