import { Buffer } from 'node:buffer';
export declare function generateSessionKey(key: string): {
    sessionKey: Buffer;
    ivSessionKey: string;
};
export declare function encryptSourceV2(source: Buffer, sessionKey: Buffer, ivSessionKey: string): Buffer;
export declare function decryptSourceV2(source: Buffer, ivSessionKey: string, key: string): Buffer;
export declare function encryptChecksumV2(checksum: string, key: string): string;
export declare function createRSA(format?: 'pem' | 'der/pem', keySize?: number): RSAKeys;
export declare function decryptChecksumV2(checksum: string, key: string): string;
export interface RSAKeys {
    publicKey: string;
    privateKey: string;
}
export declare function createRSAV2(): RSAKeys;
//# sourceMappingURL=cryptoV2.d.ts.map