import { ChainObject } from "@gala-chain/api"; import BigNumber from "bignumber.js"; export declare class TickData extends ChainObject { static INDEX_KEY: string; static MIN_TICK: number; static MAX_TICK: number; readonly poolHash: string; readonly tick: number; liquidityGross: BigNumber; initialised: boolean; liquidityNet: BigNumber; feeGrowthOutside0: BigNumber; feeGrowthOutside1: BigNumber; constructor(poolHash: string, tick: number); /** * Updates the tick's liquidity and initialization state. * * - Adjusts liquidity gross and net based on the delta and direction (upper/lower). * - Initializes the tick if it's being used for the first time. * - If initializing and tick is below or at the current price, sets fee growth outside. * - Returns `true` if the tick was just initialized or its state flipped on/off. * * @param tickCurrent - The current active tick index in the pool. * @param liquidityDelta - The amount of liquidity to add or remove. * @param upper - Whether this tick is the upper tick of a position. * @param feeGrowthGlobal0 - Global fee growth for token0. * @param feeGrowthGlobal1 - Global fee growth for token1. * @param maxLiquidity - The maximum allowed liquidity for a tick. * @returns `true` if the tick was initialized or flipped, else `false`. */ updateTick(tickCurrent: number, liquidityDelta: BigNumber, upper: boolean, feeGrowthGlobal0: BigNumber, feeGrowthGlobal1: BigNumber, maxLiquidity: BigNumber): boolean; /** * Updates the fee growth outside values based on current global fee growth and returns the net liquidity. * * @param feeGrowthGlobal0 - The global fee growth for token0. * @param feeGrowthGlobal1 - The global fee growth for token1. * @returns The net liquidity after updating fee growth values. */ tickCross(feeGrowthGlobal0: BigNumber, feeGrowthGlobal1: BigNumber): BigNumber; /** * Reset the tick data */ clear(): void; } //# sourceMappingURL=TickData.d.ts.map