/** * Storage account ID calculation for NEAR bridge transfers */ /** * Transfer message type for storage account calculation */ export type TransferMessageForStorage = { token: string; amount: bigint; recipient: string; fee: { fee: bigint; native_fee: bigint; }; sender: string; msg: string; }; /** * Calculates the storage account ID for a transfer message * * This function replicates the Rust implementation: * 1. Serializes the transfer message using Borsh * 2. Hashes the serialized data with SHA256 * 3. Converts the hash to hex to create an implicit NEAR account ID * * @param transferMessage - The transfer message data with bigint amounts * @param externalId - Optional caller-supplied identifier mixed into the hash so otherwise-identical * transfers derive distinct storage accounts. Limited to `MAX_EXTERNAL_ID_LEN` (64) UTF-8 bytes. * @returns The calculated storage account ID as a hex string */ export declare function calculateStorageAccountId(transferMessage: TransferMessageForStorage, externalId?: string): string; //# sourceMappingURL=storage.d.ts.map