import { KeyedAccountInfo, PublicKey } from '@solana/web3.js'; import { Account, AsyncSigner, DecodedAccountData, InstructionReturn } from '@staratlas/data-source'; import { RegisterSageCrewConfigInput, SageCrewConfigAccount, SageIDL, SageIDLProgram } from './constants'; /** Whether or not crew program features are turned on */ export declare const CREW_FEATURE = true; /** * Check if two `SageCrewConfigAccount` instances are equal * @param data1 - first SageCrewConfigAccount * @param data2 - second SageCrewConfigAccount * @returns a boolean */ export declare function sageCrewConfigDataEquals(data1: SageCrewConfigAccount, data2: SageCrewConfigAccount): boolean; export declare class SageCrewConfig implements Account { private _data; private _key; static readonly ACCOUNT_NAME: NonNullable[number]['name']; static readonly MIN_DATA_SIZE: number; constructor(_data: SageCrewConfigAccount, _key: PublicKey); get data(): Readonly; get key(): PublicKey; /** * Find the SageCrewConfig account address * @param program - SAGE program * @param gameId - the SAGE game id * @returns The PDA and bump respectively */ static findAddress(program: SageIDLProgram, gameId: PublicKey): [PublicKey, number]; /** * Register a SageCrewConfig * @param params - the params to this functions * @param params.program - SAGE program * @param params.key - the key authorized to run this instruction * @param params.profile - the profile with the required permissions for the instruction * @param params.crewProgramConfig - the crew program config account * @param params.gameId - the SAGE game id * @param params.input - instruction input params * @returns InstructionReturn */ static registerSageCrewConfig(params: { program: SageIDLProgram; key: AsyncSigner; profile: PublicKey; crewProgramConfig: PublicKey; gameId: PublicKey; input: RegisterSageCrewConfigInput; }): InstructionReturn; static decodeData(account: KeyedAccountInfo, program: SageIDLProgram): DecodedAccountData; } //# sourceMappingURL=sageCrewConfig.d.ts.map