import { ProgramConfig } from '@galacticcouncil/xc-core'; import { Connection, MessageV0, SimulatedTransactionResponse } from '@solana/web3.js'; export declare class SolanaTransfer { readonly connection: Connection; readonly config: ProgramConfig; constructor(connection: Connection, config: ProgramConfig); private validateConnection; getPriorityMessage(account: string): Promise; estimateFee(account: string, balance: bigint): Promise; private getV0Message; private createPriorityFeeInstructions; simulateTransaction(account: string, message: MessageV0): Promise; /** * Determine compute budget from simulated transaction * * @param transaction - versioned transaction * @returns Compute budget to 120% of the units used in the * simulated transaction plus the appended ComputeBudget ixs, or default */ determineComputeBudget(message: MessageV0): Promise; /** * Determine the priority fee to use for a transaction * * @param transaction - the transaction to determine the priority fee for * @param percentile - the percentile of recent fees to use * @param multiple - the multiple to apply to the percentile fee * @param minPriorityFee - the minimum priority fee to use * @param maxPriorityFee - the maximum priority fee to use * @returns the priority fee to use according to the recent transactions and the given parameters */ determinePriorityFee(message: MessageV0, percentile?: number, multiple?: number, minPriorityFee?: number, maxPriorityFee?: number): Promise; private getTxAccounts; }