import { BigNumberish, Uint256 } from "starknet"; /** * The AEBalance represents a simetrically encrypted balance using authenticated * encryption. This interface represents the upstream values found in the * contract, which are stored as numbers, although they must be interpreted * as bytes. */ export interface AEBalance { ciphertext: bigint; nonce: bigint; } export interface AEBalanceBytes { ciphertext: Uint8Array; nonce: Uint8Array; } export declare function AEHintToBytes({ ciphertext, nonce }: AEBalance): AEBalanceBytes; export declare function bytesToAEHint({ ciphertext, nonce }: AEBalanceBytes): AEBalance; export declare function parseAEBalance({ ciphertext, nonce, }: { ciphertext: BigNumberish; nonce: number | bigint | Uint256; }): AEBalance; export declare class AEChaCha { readonly key: Uint8Array; constructor(key: Uint8Array); encryptBalance(balance: bigint): AEBalanceBytes; decryptBalance({ ciphertext, nonce }: AEBalanceBytes): bigint; }