import { CompiledInstruction, PublicKey, TransactionResponse } from '@solana/web3.js'; export declare enum programOperationTypes { SWAP_CREATION = 8, SWAP = 4, UNKNOWN = 0 } export interface SwapInstructions extends CompiledInstruction { inner: CompiledInstruction[]; accounts: number[]; decoded: Uint8Array; } /** * @function detectSwapOrSwapCreation * @description Detects if a transaction is a swap or a swap creation. * @param tx * @param solcialSwapId */ export declare function detectSwapOrSwapCreation(tx: TransactionResponse, solcialSwapId?: PublicKey): { operationType: programOperationTypes; instructions?: SwapInstructions; }; export declare function parseSwap(transaction: TransactionResponse, solcialSwapId?: PublicKey, solcialMint?: PublicKey): Promise<{ swap: PublicKey; amountIn: bigint; amountOut: bigint; accountsIn: { source: PublicKey; mint: PublicKey; dest: PublicKey; owner: PublicKey; }; accountsOut: { source: PublicKey; mint: PublicKey; dest: PublicKey; owner: PublicKey; }; tradeAccounts: { authority_info: PublicKey; user_transfer_authority_info: PublicKey; source_info: PublicKey; swap_source_info: PublicKey; swap_destination_info: PublicKey; destination_info: PublicKey; pool_mint_info: PublicKey; pool_fee_account_info: PublicKey; source_token_program_info: PublicKey; destination_token_program_info: PublicKey; pool_token_program_info: PublicKey; }; sell: boolean; buy: boolean; price: bigint; }[]>;