ya-webadb/libraries/adb/src/daemon/device.ts
2024-10-31 17:26:37 +08:00

14 lines
425 B
TypeScript

import type { Consumable, ReadableWritablePair } from "@yume-chan/stream-extra";
import type { MaybePromiseLike } from "@yume-chan/struct";
import type { AdbPacketData, AdbPacketInit } from "./packet.js";
export interface AdbDaemonDevice {
readonly serial: string;
readonly name: string | undefined;
connect(): MaybePromiseLike<
ReadableWritablePair<AdbPacketData, Consumable<AdbPacketInit>>
>;
}