/// /// import type Log from '@expo/bunyan'; import { MessageSocket } from '@expo/dev-server'; import http from 'http'; import WebpackDevServer from 'webpack-dev-server'; declare type DevServer = WebpackDevServer | http.Server; interface WebpackSettings { url: string; server: DevServer; port: number; protocol: 'http' | 'https'; host?: string; } declare type CLIWebOptions = { dev?: boolean; clear?: boolean; pwa?: boolean; nonInteractive?: boolean; port?: number; onWebpackFinished?: (error?: Error) => void; forceManifestType?: 'classic' | 'expo-updates'; }; declare type BundlingOptions = { dev?: boolean; clear?: boolean; port?: number; pwa?: boolean; isImageEditingEnabled?: boolean; webpackEnv?: object; mode?: 'development' | 'production' | 'test' | 'none'; https?: boolean; nonInteractive?: boolean; onWebpackFinished?: (error?: Error) => void; }; export declare type WebEnvironment = { projectRoot: string; isImageEditingEnabled: boolean; pwa: boolean; mode: 'development' | 'production' | 'test' | 'none'; https: boolean; logger: Log; }; export declare function isTargetingNative(): boolean; export declare type WebpackDevServerResults = { server: DevServer; location: Omit; messageSocket: MessageSocket; }; export declare function broadcastMessage(message: 'reload' | string, data?: any): Promise; export declare function startAsync(projectRoot: string, options?: CLIWebOptions): Promise; export declare function stopAsync(projectRoot: string): Promise; export declare function openAsync(projectRoot: string, options?: BundlingOptions): Promise; export declare function bundleAsync(projectRoot: string, options?: BundlingOptions): Promise; /** * Get the URL for the running instance of Webpack dev server. * * @param projectRoot */ export declare function getUrlAsync(projectRoot: string): Promise; export {};