import type { SshKeyPair } from '../domain/model.js';
/**
 * Port for generating SSH key pairs used by the deploy pipeline (e.g. the
 * private/public keys installed on hosting + exposed as CI/CD secrets).
 *
 * The reference adapter shells out to `ssh-keygen` (`src/deploy/adapters/ssh-keygen`).
 */
export interface SshPort {
    /**
     * Generate a new ED25519 key pair.
     *
     * @param comment - Text appended to the public key (RFC 4716 "comment"),
     *   typically used to identify the purpose or environment of the key.
     */
    generateKeyPair(comment: string): Promise<SshKeyPair>;
}
