import { CashuMint } from "./CashuMint.js"; import { Proof } from "./model/Proof.js"; /** * Class that represents a Cashu wallet. */ declare class CashuWallet { keys: object; mint: CashuMint; /** * * @param keys public keys from the mint * @param mint Cashu mint instance is used to make api calls */ constructor(keys: object, mint: CashuMint); /** * returns proofs that are already spent (use for keeping wallet state clean) * @param proofs * @returns */ checkProofsSpent(proofs: Array): Promise>; requestMint(amount: number): Promise; /** * Executes a payment of an invoice on the Lightning network. * The combined amount of Proofs has to match the payment amount including fees. * @param invoice * @param proofsToSend the exact amount to send including fees * @returns */ payLnInvoice(invoice: string, proofsToSend: Array): Promise<{ isPaid: any; preimage: any; }>; getFee(invoice: string): Promise; static getDecodedLnInvoice(invoice: string): { paymentRequest: string; sections: any[]; readonly expiry: any; readonly route_hints: any[]; }; createPaymentPayload(invoice: string, proofs: Array): { invoice: string; proofs: Proof[]; }; payLnInvoiceWithToken(invoice: string, token: string): Promise<{ isPaid: any; preimage: any; }>; receive(encodedToken: string): Promise>; send(amount: number, proofs: Array): Promise<{ returnChange: Array; send: Array; }>; requestTokens(amount: number, hash: string): Promise>; private createSplitPayload; private splitReceive; private createRandomBlindedMessages; } export { CashuWallet };