import { Program, Provider, Wallet } from "@project-serum/anchor"; import { SendTxRequest } from "@project-serum/anchor/dist/provider"; import { Signer } from "@solana/web3.js"; import { CleanupOpts, Construction } from "../index"; /** * Close the ephemeral accounts such that the caller reclaims more rent then * is spent on the transaction of closing the account. * * As a note: this may mean that result accounts are not closed as they have next to * no rent */ export declare const cleanup: (provider: Provider, mallocProgram: Program, construction: Construction, constructionSigner: Signer, authority: Wallet | Signer, options?: CleanupOpts) => Promise;