import type { KeyPair } from "../crypto/keypair.js"; export declare const NET_PACKET_CRYPTO = 32; export declare const CRYPTO_PACKET_FRIEND_REQ = 32; export declare const CRYPTO_PACKET_DHTPK = 156; export declare const CRYPTO_PACKET_NAT_PING = 254; export type ToxDhtCryptoRequest = { receiverPublicKey: Uint8Array; senderPublicKey: Uint8Array; requestId: number; data: Uint8Array; }; export declare function createToxDhtCryptoRequest(opts: { sender: KeyPair; receiverPublicKey: Uint8Array; requestId: number; data: Uint8Array; }): Uint8Array; export declare function openToxDhtCryptoRequest(packet: Uint8Array, self: KeyPair): ToxDhtCryptoRequest | undefined;