///
export interface PortError extends Error {
message: string;
code: string;
}
export declare type PortCallback = (error: PortError | undefined, inUse?: boolean) => any;
export declare const setIn: (obj: {
[i: string]: any;
}, setPath: ReadonlyArray, value: any) => void;
export declare const getIn: (obj: Readonly<{
[i: string]: any;
}>, setPath: ReadonlyArray) => any;
export declare const delIn: (obj: {
[i: string]: any;
}, setPath: ReadonlyArray) => void;
export declare const isPortTaken: (port: number, callback: PortCallback) => void;
export declare type ServerCallback = (error: PortError | undefined, port?: number) => any;
export declare const getAvailablePort: (callback: ServerCallback, attempt?: number) => void;
export declare const handleShebang: (command: string) => string;
export declare const getEnvVariables: (envPath: string) => {
[i: string]: string;
};
export declare const isTruthyString: (value: any) => value is string;
export declare const injectEnvVars: (commandOptions: ReadonlyArray, environment: Readonly<{
[i: string]: string;
}>) => string[];
export declare const onClose: (prefix: string, code: number) => void;
export declare const getConfigPath: () => string;
export declare const getProjectName: () => string;
export declare const getDisplayName: (processName: string, env: string) => string;
export declare const wrapDisplayName: (displayName: string, longestName: number) => string;
export declare const constructHTMLMessage: (message: string) => string;
export declare const getTimeNow: () => string;
export declare const readWtfJson: (configPath: string) => Partial<{
[i: string]: Partial<{
routes: Partial<{
[i: string]: string;
}>;
env: Partial<{
[i: string]: Partial<{
[i: string]: string;
}> | undefined;
}>;
}>;
}>;
export declare const loadWtfJson: (configPath: string, projectName: string, env: string) => Partial<{
[i: string]: Partial<{
routes: Partial<{
[i: string]: string;
}>;
env: Partial<{
[i: string]: Partial<{
[i: string]: string;
}> | undefined;
}>;
}>;
}>;
export declare const getRouterPort: () => number;
export declare const createStringFromConfig: (createdConfig: {} | undefined) => string;
export declare const writeConfigCallback: (error?: NodeJS.ErrnoException | undefined) => undefined;