import { BridgeError } from "./protocol.js";
/**
 * Finding a computer's sshd ed25519 host key. sshd keeps it in /etc/ssh on
 * most systems, but Asustor ADM uses /usr/etc/ssh and Homebrew or Entware
 * builds use their own prefix, so ask sshd first and search the usual
 * directories after.
 */
export declare const HOST_KEY_DIRS: string[];
/** A POSIX sh script that prints the first ssh-ed25519 host public key line,
 * from sshd -T's hostkey entries then `dirs`; it prints nothing when there is none. */
export declare function hostKeyScript(dirs?: string[], sshd?: string): string;
export declare function noHostKey(where: string, dirs?: string[]): BridgeError;
/** The first ed25519 host public key line out of hostKeyScript's output. */
export declare function hostKeyLine(stdout: string): string | undefined;
/** This computer's ed25519 host public key line, or undefined when it has none. */
export declare function localHostKeyLine(dirs?: string[], sshd?: string): Promise<string | undefined>;
