/// import * as crypto from 'crypto'; import { ACCESS } from './basic'; import { SecretKey } from './secret'; import { KeySize } from './types'; export interface DiffieHellmanExchange { public: string; prime: string; generator: string; } export declare class DH { #private; constructor(access: typeof ACCESS, dh: crypto.DiffieHellman); exchange(): DiffieHellmanExchange; secret(info: DiffieHellmanExchange): SecretKey; static create(info: KeySize | DiffieHellmanExchange): DH; static secret(info: DiffieHellmanExchange): { secret: SecretKey; exchange: DiffieHellmanExchange; }; }