import { TransactionInstruction, PublicKey } from '@solana/web3.js'; import BN from 'bn.js'; export interface IncreaseLiquidityV2Args { liquidity: BN; amount0Max: BN; amount1Max: BN; baseFlag: boolean | null; } export interface IncreaseLiquidityV2Accounts { /** Pays to mint the position */ nftOwner: PublicKey; /** The token account for nft */ nftAccount: PublicKey; poolState: PublicKey; protocolPosition: PublicKey; /** Increase liquidity for this position */ personalPosition: PublicKey; /** Stores init state for the lower tick */ tickArrayLower: PublicKey; /** Stores init state for the upper tick */ tickArrayUpper: PublicKey; /** The payer's token account for token_0 */ tokenAccount0: PublicKey; /** The token account spending token_1 to mint the position */ tokenAccount1: PublicKey; /** The address that holds pool tokens for token_0 */ tokenVault0: PublicKey; /** The address that holds pool tokens for token_1 */ tokenVault1: PublicKey; /** Program to create mint account and mint tokens */ tokenProgram: PublicKey; /** Token program 2022 */ tokenProgram2022: PublicKey; /** The mint of token vault 0 */ vault0Mint: PublicKey; /** The mint of token vault 1 */ vault1Mint: PublicKey; } export declare const layout: any; /** * Increases liquidity with a exist position, with amount paid by `payer`, support Token2022 * * # Arguments * * * `ctx` - The context of accounts * * `liquidity` - The desired liquidity to be added, if zero, calculate liquidity base amount_0 or amount_1 according base_flag * * `amount_0_max` - The max amount of token_0 to spend, which serves as a slippage check * * `amount_1_max` - The max amount of token_1 to spend, which serves as a slippage check * * `base_flag` - active if liquidity is zero, 0: calculate liquidity base amount_0_max otherwise base amount_1_max * */ export declare function increaseLiquidityV2(args: IncreaseLiquidityV2Args, accounts: IncreaseLiquidityV2Accounts): TransactionInstruction;