export function makeNoiseHandler({ keyPair: { private: privateKey, public: publicKey }, NOISE_HEADER, logger, routingInfo }: {
    keyPair: {
        private: any;
        public: any;
    };
    NOISE_HEADER: any;
    logger: any;
    routingInfo: any;
}): {
    encrypt: (plaintext: any) => any;
    decrypt: (ciphertext: any) => any;
    authenticate: (data: any) => void;
    mixIntoKey: (data: any) => void;
    finishInit: () => Promise<void>;
    processHandshake: ({ serverHello }: {
        serverHello: any;
    }, noiseKey: any) => any;
    encodeFrame: (data: any) => Buffer<ArrayBuffer>;
    decodeFrame: (newData: any, onFrame: any) => Promise<void>;
};
