/** * see the docs of server-commander.ts for more info * this "server-forever" command is used to run the bit server in a way that it will never stop. if it gets killed, * it will restart itself. * it spawns "bit server" using node-pty for a pseudo-terminal (PTY) in order for libs such as inquirer/ora/chalk to work properly. */ export declare function spawnPTY(): void; export declare function getSocketPort(): number; /** * it's easier to generate a random port based on the workspace path than to save it in a file */ export declare function getPortFromPath(path: string): number; export declare function getPidByPort(port: number, consoleErrors?: boolean): string | null;