/** * Returns the SSH directory examined for keys: the `IMQ_SSH_DIR` override * (testing / non-standard homes) or `~/.ssh`. * * @return {string} */ export declare function sshDir(): string; /** * Detects whether the current machine user has any SSH keys set up, by looking * for a conventional private key (id_rsa, id_ed25519, …) or any public * (`*.pub`) key in the user's `.ssh` directory. Purely filesystem-based: it * makes no network calls and spawns no processes, so it is fast and safe to * call during interactive setup. * * @param {string} [dir] - ssh directory to inspect (defaults to `sshDir()`) * @return {boolean} */ export declare function hasSshKeys(dir?: string): boolean; /** * Chooses the git transport to default to for pushing new services: `ssh` when * the user has SSH keys on this machine, otherwise `https`. This mirrors what * the user is most likely already able to authenticate with. * * @param {string} [dir] - ssh directory to inspect (defaults to `sshDir()`) * @return {'ssh' | 'https'} */ export declare function detectGitProtocol(dir?: string): 'ssh' | 'https';