import * as Web3 from '@solana/web3.js'; import * as DataSource from '@staratlas/data-source'; import * as Constants from '../constants'; export type SftRedemptionSeedsArgs = { crewConfig?: Web3.PublicKey; packType: Web3.PublicKey; sftMint: Web3.PublicKey; redemptionAmount: number; }; export type SftRedemptionAccount = { version: number; bump: number; packType: Web3.PublicKey; sftMint: Web3.PublicKey; crewConfig: Web3.PublicKey; redemptionAmount: number; }; /** * * @param sftRedemption1 - The first sft redemption account to compare * @param sftRedemption2 - The second sft redemption account to compare * @returns boolean */ export declare function sftRedemptionEquals(sftRedemption1: SftRedemptionAccount, sftRedemption2: SftRedemptionAccount): boolean; export declare class SftRedemption implements DataSource.Account { private _data; private _key; static readonly ACCOUNT_NAME: NonNullable[number]['name']; static readonly MIN_DATA_SIZE: number; constructor(_data: SftRedemptionAccount, _key: Web3.PublicKey); get data(): Readonly; get key(): Web3.PublicKey; static decodeData(account: Web3.KeyedAccountInfo, program: Constants.CrewIDLProgram): DataSource.DecodedAccountData; /** * Find the address of the sftRedemption account for the given packType, sftMint, and redemptionAmount. * @param program - The program ID of the Crew program. * @param args - The seeds for the sftRedemption account. * @returns The address and bump of the sftRedemption account. */ static findAddress(program: Constants.CrewIDLProgram, args: SftRedemptionSeedsArgs): [Web3.PublicKey, number]; } //# sourceMappingURL=sftRedemption.d.ts.map