Summary: As per title Reviewed By: jknoxville Differential Revision: D17284770 fbshipit-source-id: 85bc6b2b19b38f409b7eb0fda6fb94655a05c0d9
25 lines
563 B
TypeScript
25 lines
563 B
TypeScript
/**
|
|
* Copyright 2018-present Facebook.
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
* @format
|
|
*/
|
|
|
|
interface Device {
|
|
id: string;
|
|
type: 'emulator' | 'device' | 'offline';
|
|
}
|
|
|
|
interface Util {
|
|
readAll: (stream: NodeJS.ReadStream) => Promise<Buffer>;
|
|
}
|
|
|
|
declare module 'adbkit-fb' {
|
|
const util: any;
|
|
const adbkit: any;
|
|
export interface Client {
|
|
listDevices: () => Promise<Device[]>;
|
|
}
|
|
export function createClient(config: {port: number; host: string}): Client;
|
|
}
|