import * as Web3 from '@solana/web3.js'; import * as DataSource from '@staratlas/data-source'; import * as Constants from '../constants'; import { BitViewer } from '../bitview'; export type UserRedemptionSeedsArgs = { seedPubkey: Web3.PublicKey; packType: Web3.PublicKey; owner: Web3.PublicKey; }; export type UserRedemptionAccount = { version: number; bump: number; crewConfig: Web3.PublicKey; seedPubkey: Web3.PublicKey; owner: Web3.PublicKey; mintOffset: number; amount: number; numberMinted: number; packType: Web3.PublicKey; userSeed: DataSource.FixedSizeArray; serverHash: DataSource.FixedSizeArray; sageProfile: Web3.PublicKey; }; /** * * @param userRedemption1 - The first user redemption account to compare * @param userRedemption2 - The second user redemption account to compare * @returns boolean */ export declare function userRedemptionEquals(userRedemption1: UserRedemptionAccount, userRedemption2: UserRedemptionAccount): boolean; export declare class UserRedemption implements DataSource.Account { private _data; private _key; readonly mintBits: BitViewer; static readonly ACCOUNT_NAME: NonNullable[number]['name']; static readonly MIN_DATA_SIZE: number; constructor(_data: UserRedemptionAccount, _key: Web3.PublicKey, mintBits: BitViewer); get data(): Readonly; get key(): Web3.PublicKey; static decodeData(account: Web3.KeyedAccountInfo, program: Constants.CrewIDLProgram): DataSource.DecodedAccountData; /** * Find the address and bump of the userRedemption account for the given owner and packType. * @param program - The program ID of the Crew program. * @param args - The seeds for the userRedemption account. * @returns The address and bump of the userRedemption account. */ static findAddress(program: Constants.CrewIDLProgram, args: UserRedemptionSeedsArgs): [Web3.PublicKey, number]; } //# sourceMappingURL=userRedemption.d.ts.map