import type * as anchor from "@project-serum/anchor"; import type { TransactionEnvelope } from "@saberhq/solana-contrib"; import type { u64 } from "@saberhq/token-utils"; import type { PublicKey } from "@solana/web3.js"; import type { LockupProgram, ReleaseData } from "../programs/lockup"; import type { Saber } from "../sdk"; export interface PendingRelease { release: anchor.web3.PublicKey; tx: TransactionEnvelope; } export declare class LockupWrapper { readonly saber: Saber; readonly program: LockupProgram; constructor(saber: Saber); get provider(): import("@saberhq/solana-contrib").AugmentedProvider; releaseAddress(beneficiary: PublicKey): Promise; fetchRelease(beneficiary: PublicKey): Promise; createRelease({ amount, startTs, endTs, beneficiary, release, minterInfo, mint, }: { amount: anchor.BN; startTs: anchor.BN; endTs: anchor.BN; beneficiary: PublicKey; release: PublicKey; minterInfo: PublicKey; mint: PublicKey; }): PendingRelease; /** * Creates a release for a beneficiary. */ createReleaseForBeneficiary({ amount, startTs, endTs, beneficiary, }: { amount: anchor.BN; startTs: anchor.BN; endTs: anchor.BN; beneficiary: PublicKey; }): Promise; /** * Withdraws tokens. * @param beneficiary * @returns */ withdraw(beneficiary?: PublicKey, amount?: u64): Promise; /** * Creates a release for a beneficiary. */ revokeReleaseForBeneficiary({ beneficiary, }: { beneficiary: PublicKey; }): Promise; } //# sourceMappingURL=lockup.d.ts.map