/// import { TransactionMode } from './types'; export interface SwapConfig { rpcUrl?: string; commitment?: 'processed' | 'confirmed' | 'finalized'; trackTx?: boolean; } /** * Buy tokens on Pump.fun * * @param transactionMode Transaction mode (Simulation or Execution) * @param payerPrivateKey Base58-encoded private key * @param mintStr Token mint address * @param solIn Amount of SOL to spend * @param priorityFeeInSol Optional priority fee in SOL * @param slippageDecimal Optional slippage tolerance (0-1) * @param config Optional configuration parameters * @returns Promise resolving to transaction signature if executed */ export declare function pumpFunBuy(transactionMode: TransactionMode, payerPrivateKey: string, mintStr: string, solIn: number, priorityFeeInSol?: number, slippageDecimal?: number, config?: SwapConfig): Promise<{ success: boolean; signature: string; expectedOutput: number; inputAmount: number; outputToken: string; simulation?: undefined; logs?: undefined; } | { success: boolean; simulation: import("@solana/web3.js").SimulatedTransactionResponse; expectedOutput: number; inputAmount: number; logs: string[] | null; signature?: undefined; outputToken?: undefined; }>; /** * Sell tokens on Pump.fun * * @param transactionMode Transaction mode (Simulation or Execution) * @param payerPrivateKey Base58-encoded private key * @param mintStr Token mint address * @param tokenBalance Amount of tokens to sell * @param priorityFeeInSol Optional priority fee in SOL * @param slippageDecimal Optional slippage tolerance (0-1) * @param config Optional configuration parameters * @returns Promise resolving to transaction signature if executed */ export declare function pumpFunSell(transactionMode: TransactionMode, payerPrivateKey: string, mintStr: string, tokenBalance: number, priorityFeeInSol?: number, slippageDecimal?: number, config?: SwapConfig): Promise<{ success: boolean; signature: string; expectedOutput: number; inputAmount: number; outputToken: string; simulation?: undefined; logs?: undefined; } | { success: boolean; simulation: import("@solana/web3.js").SimulatedTransactionResponse; expectedOutput: number; inputAmount: number; logs: string[] | null; signature?: undefined; outputToken?: undefined; }>;