import type { RsaKeyPair } from '../types';
/**
 * 生成 RSA 公钥和私钥
 */
export declare function generateKeyPair(): RsaKeyPair;
/**
 * 使用 RSA 公钥加密
 */
export declare function encrypt(data: string, publicKey: string): string;
/**
 * 使用 RSA 私钥解密
 */
export declare function decrypt(encryptedData: string, privateKey: string): string;
/**
 * 使用 RSA 私钥对数据进行签名
 */
export declare function sign(data: string, privateKey: string): string;
/**
 * 使用 RSA 公钥验证签名
 */
export declare function verify(data: string, signature: string, publicKey: string): boolean;
