import { PublicKey, Connection, Transaction, Commitment } from '@solana/web3.js'; import { Numberu64 } from '@solcial.io/spl-token-swap'; interface TokenSwapAccount { tokenSwapAccount: PublicKey; authority: PublicKey; poolToken: PublicKey; feeAccount: PublicKey; tokenAccountA: PublicKey; tokenAccountB: PublicKey; mintA: PublicKey; mintB: PublicKey; tokenProgramId: PublicKey; tradeFeeNumerator: Numberu64; tradeFeeDenominator: Numberu64; ownerTradeFeeNumerator: Numberu64; ownerTradeFeeDenominator: Numberu64; ownerWithdrawFeeNumerator: Numberu64; ownerWithdrawFeeDenominator: Numberu64; hostFeeNumerator: Numberu64; hostFeeDenominator: Numberu64; curveType: unknown; curveParameters: bigint; } export declare function loadTokenSwapAccount(connection: Connection, tokenSwapAccount: PublicKey, tokenSwapProgramId?: PublicKey, commitment?: Commitment): Promise; export declare function loadTokenSwapData(connection: Connection, user: PublicKey, tokenSwapProgramId?: PublicKey, commitment?: Commitment): Promise; export declare function getTokenPoolBalance(connection: Connection, tokenSwap: any, commitment?: Commitment): Promise<{ tokenA: bigint; tokenB: bigint; }>; export declare function getTokenMetadata(connection: Connection, tokenSwap: any, commitment?: Commitment): Promise<{ tokenA: { mint: string; name: string; symbol: string; uri: string; }; tokenB: { mint: string; name: string; symbol: string; uri: string; }; }>; export declare function buyInstructionWithTokenSwap(connection: Connection, tokenSwap: TokenSwapAccount, buyer: PublicKey, amountUsrOut: bigint, slclPrice: bigint, minimumAmountOut?: number, tokenProgramId?: PublicKey, tokenSwapProgramId?: PublicKey, commitment?: Commitment): Promise; export declare function buyInstruction(connection: Connection, user: PublicKey, buyer: PublicKey, amountUsrOut: bigint, slclPrice: bigint, minimumAmountOut?: number, tokenProgramId?: PublicKey, tokenSwapProgramId?: PublicKey, commitment?: Commitment): Promise; export declare function sellInstructionWithTokenSwap(connection: Connection, tokenSwap: TokenSwapAccount, seller: PublicKey, amountUsrIn: bigint, slclPrice: bigint, minimumAmountOut?: number, tokenProgramId?: PublicKey, tokenSwapProgramId?: PublicKey, commitment?: Commitment): Promise; export declare function sellInstruction(connection: Connection, user: PublicKey, seller: PublicKey, amountUsrIn: bigint, slclPrice: bigint, minimumAmountOut?: number, tokenProgramId?: PublicKey, tokenSwapProgramId?: PublicKey, commitment?: Commitment): Promise; export declare function getFees(amountIn: bigint, price: bigint): bigint; export declare function getUsrOutForSlclInSync(tokenA: bigint, tokenB: bigint, offset: bigint, slclIn: bigint): bigint; export declare function getUsrOutForSlclIn(connection: Connection, tokenSwap: any, slclIn: bigint, commitment?: Commitment): Promise; export declare function getSlclOutForUsrInSync(tokenA: bigint, tokenB: bigint, offset: bigint, usrIn: bigint): bigint; export declare function getSlclOutForUsrIn(connection: Connection, tokenSwap: any, usrIn: bigint, commitment?: Commitment): Promise; export declare function getSlclInForUsrOutSync(tokenA: bigint, tokenB: bigint, offset: bigint, usrOut: bigint): bigint; export declare function getSlclInForUsrOut(connection: Connection, tokenSwap: any, usrOut: bigint, commitment?: Commitment): Promise; export declare function getUsrInForSlclOutSync(tokenA: bigint, tokenB: bigint, offset: bigint, slclOut: bigint): bigint; export declare function getUsrInForSlclOut(connection: Connection, tokenSwap: any, slclOut: bigint, commitment?: Commitment): Promise; export declare function getBuyingSlippage(connection: any, swap: any, userAmount: bigint, userSlclPrice: bigint, commitment?: Commitment): Promise<{ estimated: bigint; swapAmount: bigint; slippage: bigint; }>; export declare function getSellingSlippage(connection: Connection, swap: any, userAmount: bigint, userSlclPrice: bigint, commitment?: Commitment): Promise<{ estimated: bigint; swapAmount: bigint; slippage: bigint; }>; export interface PoolTokenMetadata { tokenA: TokenMetadata; tokenB: TokenMetadata; } export interface TokenMetadata { mint: string; symbol: string; name: string; uri: string; } export {};