/** * How to reach the local UI from where the admin is sitting. On a machine with a desktop, open * the URL; over SSH or on a headless server, forward the port from the admin's own computer * first. The UI binds 127.0.0.1 only and checks the Host header, so the local port must equal * the remote one. */ /** Over SSH, or Linux with no display server: a browser here would show nothing to the admin. */ export declare function isHeadless(platform?: NodeJS.Platform, env?: NodeJS.ProcessEnv): boolean; /** Who to SSH in as, and where; `sshPort` only when it is not 22. */ export interface SshLogin { user: string; host: string; sshPort?: number; } /** The lines telling the admin how to open the UI at `port`. */ export declare function uiAccessLines(port: number, headless: boolean, who?: SshLogin): string[]; /** * Over SSH, the server address and port the admin's client connected to (`SSH_CONNECTION` is * "client-ip client-port server-ip server-port"): a VPS's hostname rarely resolves from the * admin's computer, the address they just reached does. Otherwise this machine's hostname. */ export declare function currentLogin(env?: NodeJS.ProcessEnv): SshLogin;