UNPKG

snowpack

Version:

The ESM-powered frontend build tool. Fast, lightweight, unbundled.

28 lines (27 loc) 927 B
/// <reference types="node" /> import { EventEmitter } from 'events'; import { SnowpackConfig } from '../types'; export declare const paintEvent: { BUILD_FILE: string; LOAD_ERROR: string; SERVER_START: string; WORKER_COMPLETE: string; WORKER_MSG: string; WORKER_RESET: string; }; /** * Get the actual port, based on the `defaultPort`. * If the default port was not available, then we'll prompt the user if its okay * to use the next available port. */ export declare function getPort(defaultPort: number): Promise<number>; export declare function getServerInfoMessage({ startTimeMs, port, protocol, hostname, remoteIp }: ServerInfo, isBuilding?: boolean): string; interface ServerInfo { port: number; hostname: string; protocol: string; startTimeMs: number; remoteIp?: string; } export declare function paintDashboard(bus: EventEmitter, config: SnowpackConfig): void; export {};