import { DeepReadonly } from 'ts-essentials'; import { Tick, QuoteData, AbiPoolKey } from '../types'; export declare namespace PoolState { type Object = { sqrtRatio: bigint; liquidity: bigint; activeTick: number; readonly sortedTicks: Tick[]; activeTickIndex: number | null; readonly checkedTicksBounds: readonly [number, number]; }; function fromQuoter(data: QuoteData, isFullRange: boolean): Object; function fromSwappedEvent(oldState: DeepReadonly, sqrtRatioAfter: bigint, liquidityAfter: bigint, tickAfter: number): Object; function fromPositionUpdatedEvent(oldState: DeepReadonly, [lowTick, highTick]: [number, number], liquidityDelta: bigint): Object | null; function addLiquidityCutoffs(state: PoolState.Object): void; function updateTick(state: Object, updatedTickNumber: number, liquidityDelta: bigint, upper: boolean, forceInsert: boolean): void; function computeTvl(state: DeepReadonly): [bigint, bigint]; } export declare class PoolKey { readonly token0: bigint; readonly token1: bigint; readonly config: PoolConfig; private _string_id?; private _num_id?; constructor(token0: bigint, token1: bigint, config: PoolConfig); get string_id(): string; get num_id(): bigint; toAbi(): AbiPoolKey; } export declare class PoolConfig { readonly tickSpacing: number; readonly fee: bigint; readonly extension: bigint; private _compressed?; constructor(tickSpacing: number, fee: bigint, extension: bigint, _compressed?: bigint | undefined); get compressed(): bigint; static fromCompressed(compressed: bigint): PoolConfig; } /** * Returns the index in the sorted tick array that has the greatest value of tick that is not greater than the given tick * @param sortedTicks the sorted list of ticks to search in * @param tick the tick to search for */ export declare function findNearestInitializedTickIndex(sortedTicks: Tick[], tick: number): number | null;