UNPKG

904 BTypeScriptView Raw
1import { ExpoConfig } from '@expo/config';
2import { StartDevServerOptions } from '../internal';
3/**
4 * Sends a message over web sockets to any connected device,
5 * does nothing when the dev server is not running.
6 *
7 * @param method name of the command. In RN projects `reload`, and `devMenu` are available. In Expo Go, `sendDevCommand` is available.
8 * @param params
9 */
10export declare function broadcastMessage(method: 'reload' | 'devMenu' | 'sendDevCommand', params?: Record<string, any> | undefined): void;
11export declare function startWebpackAsync(projectRoot: string, { exp, ...options }?: StartDevServerOptions & {
12 exp?: ExpoConfig;
13}): Promise<void>;
14export declare function startAsync(projectRoot: string, { exp, ...options }?: StartDevServerOptions & {
15 exp?: ExpoConfig;
16}, verbose?: boolean): Promise<ExpoConfig>;
17export declare function stopAsync(projectRoot: string): Promise<void>;