import * as Web3 from '@solana/web3.js'; import * as DataSource from '@staratlas/data-source'; import * as Constants from '../constants'; import { Faction } from '@staratlas/profile-faction'; export { Faction } from '@staratlas/profile-faction'; export type PackTypeSeedsArgs = { crewConfig?: Web3.PublicKey; packTiers: Web3.PublicKey; faction: Faction; }; export type PackTypeAccount = { version: number; bump: number; crewConfig: Web3.PublicKey; packTiers: Web3.PublicKey; faction: Faction; }; /** * * @param packType1 - The first pack type to compare * @param packType2 - The second pack type to compare * @returns boolean */ export declare function packTypeEquals(packType1: PackTypeAccount, packType2: PackTypeAccount): boolean; export declare class PackType implements DataSource.Account { private _data; private _key; static readonly ACCOUNT_NAME: NonNullable[number]['name']; static readonly MIN_DATA_SIZE: number; constructor(_data: PackTypeAccount, _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 packType account for the given packTiers and faction. * @param program - The program ID of the Crew program. * @param args - The seeds for the packType account. * @returns The address and bump of the packType account. */ static findAddress(program: Constants.CrewIDLProgram, args: PackTypeSeedsArgs): [Web3.PublicKey, number]; } //# sourceMappingURL=packType.d.ts.map