import type { MaybePromiseLike } from "@yume-chan/async"; import type { AbortSignal, MaybeConsumable, ReadableStream, WritableStream } from "@yume-chan/stream-extra"; export interface AdbShellProtocolProcess { get stdin(): WritableStream>; get stdout(): ReadableStream; get stderr(): ReadableStream; get exited(): Promise; kill(): MaybePromiseLike; } export declare class AdbShellProtocolSpawner { #private; constructor(spawn: (command: readonly string[], signal: AbortSignal | undefined) => Promise); spawn(command: string | readonly string[], signal?: AbortSignal): Promise; spawnWait(command: string | readonly string[]): Promise>; spawnWaitText(command: string | readonly string[]): Promise>; } export declare namespace AdbShellProtocolSpawner { interface WaitResult { stdout: T; stderr: T; exitCode: number; } } //# sourceMappingURL=spawner.d.ts.map