/**
 * This code was AUTOGENERATED using the Codama library.
 * Please DO NOT EDIT THIS FILE, instead use visitors
 * to add features, then rerun Codama to update it.
 *
 * @see https://github.com/codama-idl/codama
 */
import { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type EncodedAccount, type FetchAccountConfig, type FetchAccountsConfig, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from '@solana/kit';
import { type FeeInfo, type FeeInfoArgs, type UserRewardInfo, type UserRewardInfoArgs } from '../types';
export declare const POSITION_V2_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
export declare function getPositionV2DiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
export type PositionV2 = {
    discriminator: ReadonlyUint8Array;
    /** The LB pair of this position */
    lbPair: Address;
    /** Owner of the position. Client rely on this to to fetch their positions. */
    owner: Address;
    /** Liquidity shares of this position in bins (lower_bin_id <-> upper_bin_id). This is the same as LP concept. */
    liquidityShares: Array<bigint>;
    /** Farming reward information */
    rewardInfos: Array<UserRewardInfo>;
    /** Swap fee to claim information */
    feeInfos: Array<FeeInfo>;
    /** Lower bin ID */
    lowerBinId: number;
    /** Upper bin ID */
    upperBinId: number;
    /** Last updated timestamp */
    lastUpdatedAt: bigint;
    /** Total claimed token fee X */
    totalClaimedFeeXAmount: bigint;
    /** Total claimed token fee Y */
    totalClaimedFeeYAmount: bigint;
    /** Total claimed rewards */
    totalClaimedRewards: Array<bigint>;
    /** Operator of position */
    operator: Address;
    /** Slot which the locked liquidity can be withdraw */
    lockReleaseSlot: bigint;
    /** Is the position subjected to liquidity locking for the launch pool. */
    subjectedToBootstrapLiquidityLocking: number;
    /** Address is able to claim fee in this position, only valid for bootstrap_liquidity_position */
    feeOwner: Address;
    /** Reserved space for future use */
    reserved: ReadonlyUint8Array;
};
export type PositionV2Args = {
    /** The LB pair of this position */
    lbPair: Address;
    /** Owner of the position. Client rely on this to to fetch their positions. */
    owner: Address;
    /** Liquidity shares of this position in bins (lower_bin_id <-> upper_bin_id). This is the same as LP concept. */
    liquidityShares: Array<number | bigint>;
    /** Farming reward information */
    rewardInfos: Array<UserRewardInfoArgs>;
    /** Swap fee to claim information */
    feeInfos: Array<FeeInfoArgs>;
    /** Lower bin ID */
    lowerBinId: number;
    /** Upper bin ID */
    upperBinId: number;
    /** Last updated timestamp */
    lastUpdatedAt: number | bigint;
    /** Total claimed token fee X */
    totalClaimedFeeXAmount: number | bigint;
    /** Total claimed token fee Y */
    totalClaimedFeeYAmount: number | bigint;
    /** Total claimed rewards */
    totalClaimedRewards: Array<number | bigint>;
    /** Operator of position */
    operator: Address;
    /** Slot which the locked liquidity can be withdraw */
    lockReleaseSlot: number | bigint;
    /** Is the position subjected to liquidity locking for the launch pool. */
    subjectedToBootstrapLiquidityLocking: number;
    /** Address is able to claim fee in this position, only valid for bootstrap_liquidity_position */
    feeOwner: Address;
    /** Reserved space for future use */
    reserved: ReadonlyUint8Array;
};
/** Gets the encoder for {@link PositionV2Args} account data. */
export declare function getPositionV2Encoder(): FixedSizeEncoder<PositionV2Args>;
/** Gets the decoder for {@link PositionV2} account data. */
export declare function getPositionV2Decoder(): FixedSizeDecoder<PositionV2>;
/** Gets the codec for {@link PositionV2} account data. */
export declare function getPositionV2Codec(): FixedSizeCodec<PositionV2Args, PositionV2>;
export declare function decodePositionV2<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<PositionV2, TAddress>;
export declare function decodePositionV2<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<PositionV2, TAddress>;
export declare function fetchPositionV2<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<PositionV2, TAddress>>;
export declare function fetchMaybePositionV2<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<PositionV2, TAddress>>;
export declare function fetchAllPositionV2(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<PositionV2>[]>;
export declare function fetchAllMaybePositionV2(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<PositionV2>[]>;
export declare function getPositionV2Size(): number;
//# sourceMappingURL=positionV2.d.ts.map