///
import { Connection, PublicKey, TransactionInstruction } from '@solana/web3.js';
import BN from 'bn.js';
import { Base, TokenAccount, TxVersion } from '../base';
import { CacheLTA } from '../common';
export interface SHOW_INFO {
programId: PublicKey;
poolId: PublicKey;
ammId: PublicKey;
ownerAccountId: PublicKey;
snapshotLpAmount: BN;
openTime: number;
endTime: number;
project: (typeof Utils1216.VERSION_PROJECT)[number];
canClaim: boolean;
canClaimErrorType: canClaimErrorType;
tokenInfo: {
programId: PublicKey;
mintAddress: PublicKey;
mintVault: PublicKey;
mintDecimals: number;
perLpLoss: BN;
debtAmount: BN;
}[];
}
export type canClaimErrorType = 'outOfOperationalTime' | 'alreadyClaimIt' | undefined;
export declare class Utils1216 extends Base {
static CLAIMED_NUM: number;
static POOL_LAYOUT: import("../marshmallow").Structure;
static OWNER_LAYOUT: import("../marshmallow").Structure;
static DEFAULT_POOL_ID: PublicKey[];
static SEED_CONFIG: {
pool: {
id: Buffer;
};
owner: {
id: Buffer;
};
};
static VERSION_PROJECT: readonly [undefined, "Francium", "Tulip", "Larix"];
static getPdaPoolId(programId: PublicKey, ammId: PublicKey): {
publicKey: PublicKey;
nonce: number;
};
static getPdaOwnerId(programId: PublicKey, poolId: PublicKey, owner: PublicKey, version: number): {
publicKey: PublicKey;
nonce: number;
};
static getAllInfo({ connection, programId, poolIds, wallet, chainTime, }: {
connection: Connection;
programId: PublicKey;
poolIds: PublicKey[];
wallet: PublicKey;
chainTime: number;
}): Promise;
static makeClaimInstructionSimple({ connection, poolInfo, ownerInfo, makeTxVersion, lookupTableCache, }: {
makeTxVersion: T;
lookupTableCache?: CacheLTA;
connection: Connection;
poolInfo: SHOW_INFO;
ownerInfo: {
wallet: PublicKey;
tokenAccounts: TokenAccount[];
associatedOnly: boolean;
checkCreateATAOwner: boolean;
};
}): Promise<{
address: {};
innerTransactions: (T extends TxVersion.LEGACY ? import("../base").InnerSimpleLegacyTransaction : import("../base").InnerSimpleV0Transaction)[];
}>;
static makeClaimAllInstructionSimple({ connection, poolInfos, ownerInfo, makeTxVersion, lookupTableCache, }: {
makeTxVersion: T;
lookupTableCache?: CacheLTA;
connection: Connection;
poolInfos: SHOW_INFO[];
ownerInfo: {
wallet: PublicKey;
tokenAccounts: TokenAccount[];
associatedOnly: boolean;
checkCreateATAOwner: boolean;
};
}): Promise<{
address: {};
innerTransactions: (T extends TxVersion.LEGACY ? import("../base").InnerSimpleLegacyTransaction : import("../base").InnerSimpleV0Transaction)[];
}>;
static makeClaimInstruction({ programId, poolInfo, ownerInfo, }: {
programId: PublicKey;
poolInfo: SHOW_INFO;
ownerInfo: {
wallet: PublicKey;
ownerPda: PublicKey;
claimAddress: PublicKey[];
};
}): TransactionInstruction;
}