UNPKG

927 BTypeScriptView Raw
1/// <reference types="node" />
2import { EventEmitter } from 'events';
3import { SnowpackConfig } from '../types';
4export declare const paintEvent: {
5 BUILD_FILE: string;
6 LOAD_ERROR: string;
7 SERVER_START: string;
8 WORKER_COMPLETE: string;
9 WORKER_MSG: string;
10 WORKER_RESET: string;
11};
12/**
13 * Get the actual port, based on the `defaultPort`.
14 * If the default port was not available, then we'll prompt the user if its okay
15 * to use the next available port.
16 */
17export declare function getPort(defaultPort: number): Promise<number>;
18export declare function getServerInfoMessage({ startTimeMs, port, protocol, hostname, remoteIp }: ServerInfo, isBuilding?: boolean): string;
19interface ServerInfo {
20 port: number;
21 hostname: string;
22 protocol: string;
23 startTimeMs: number;
24 remoteIp?: string;
25}
26export declare function paintDashboard(bus: EventEmitter, config: SnowpackConfig): void;
27export {};