/** * Generate a new swarm key using cryptographically secure random bytes. */ export declare function generateSwarmKey(outputPath?: string): string; /** * Force-regenerate the swarm key (e.g., if compromised). */ export declare function regenerateSwarmKey(): string; /** * Install the swarm key into the IPFS directory. */ export declare function installSwarmKey(swarmKeyPath?: string): void; /** * Read and return the current swarm key content. */ export declare function readSwarmKey(): string | null; /** * Export swarm key encrypted with AES-256-GCM. */ export declare function exportKeyEncrypted(passphrase: string, outputPath?: string): string; /** * Import and decrypt an encrypted swarm key. */ export declare function importKeyEncrypted(encryptedPath: string, passphrase: string): void; /** * Start a one-time HTTP(S) server to securely share the swarm key. * Server auto-destroys after one successful transfer or timeout. * * If useTLS is true, generates a self-signed certificate for encrypted transfer. */ export declare function serveKey(port?: number, useTLS?: boolean): Promise<{ pin: string; url: string; }>; /** * Fetch swarm key from a remote key server. */ export declare function fetchKey(host: string, port: number, pin: string): Promise; /** * Copy swarm key to a remote host via SCP. */ export declare function copyKeyViaSSH(target: string): Promise; //# sourceMappingURL=swarm-key.d.ts.map