import { Connection } from '@solana/web3.js'; /** * Extracts a human-readable error message from Solana transaction logs. */ export declare function extractTransactionError(err: any, logMessages?: string[] | null): string; /** * Polls getSignatureStatuses until the transaction is confirmed, then checks for errors. * Throws if the transaction failed on-chain. Returns parsed transaction info on success. */ export declare function confirmAndCheckTransaction(connection: Connection, signature: string): Promise;