flipper-server-client
Version:
Lightweight abstraction to connect to Flipper Server and provide an API to interact with it
18 lines • 895 B
TypeScript
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
import { FlipperServer, FlipperServerCommands, FlipperServerExecOptions } from 'flipper-common';
export declare enum FlipperServerState {
CONNECTING = 0,
CONNECTED = 1,
DISCONNECTED = 2
}
export type { FlipperServer, FlipperServerCommands, FlipperServerExecOptions };
export declare function createFlipperServer(host: string, port: number, tokenProvider: () => string | null | undefined, onStateChange: (state: FlipperServerState) => void): Promise<FlipperServer>;
export declare function createFlipperServerWithSocket(socket: WebSocket, port: number, onStateChange: (state: FlipperServerState) => void): Promise<FlipperServer>;
//# sourceMappingURL=FlipperServerClient.d.ts.map