import { ParametersSpendProof, SaplingSpendDescription } from '../types'; /** * holds the proving key, create proof for spend descriptions * The class can be instantiated from a proving key or a spending key */ export declare class InMemoryProvingKey { #private; constructor(provingKey: string); /** * Allows to instantiate the InMemoryProvingKey from an encrypted/unencrypted spending key * * @param spendingKey Base58Check-encoded spending key * @param password Optional password to decrypt the spending key * @example * ``` * await InMemoryProvingKey.fromSpendingKey('sask27SLmU9herddHz4qFJBLMjWYMbJF8RtS579w9ej9mfCYK7VUdyCJPHK8AzW9zMsopGZEkYeNjAY7Zz1bkM7CGu8eKLzrjBLTMC5wWJDhxiK91ahA29rhDRsHdJDV2u2jFwb2MNUix8JW7sAkAqYVaJpCehTBPgRQ1KqKwqqUaNmuD8kazd4Q8MCWmgbWs21Yuomdqyi9FLigjRp7oY4m5adaVU19Nj1AHvsMY2tePeU2L') * ``` * */ static fromSpendingKey(spendingKey: string, password?: string): Promise; /** * Prepare an unsigned sapling spend description using the proving key * * @param parametersSpendProof.saplingContext The sapling proving context * @param parametersSpendProof.address The address of the input * @param parametersSpendProof.randomCommitmentTrapdoor The randomness of the commitment * @param parametersSpendProof.publicKeyReRandomization The re-randomization of the public key * @param parametersSpendProof.amount The value of the input * @param parametersSpendProof.root The root of the merkle tree * @param parametersSpendProof.witness The path of the commitment in the tree * @returns The unsinged spend description */ prepareSpendDescription(parametersSpendProof: Omit): Promise>; }