import { Connection, PublicKey, TransactionInstruction, AddressLookupTableAccount } from "@solana/web3.js"; /** * Parses program logs to extract error message. * Checks in order: Anchor "Error Message:", insufficient funds/lamports, * and custom program error codes (resolved via IDL when possible). * Returns "Unknown error" if no recognizable error pattern is found. */ export declare function parseProgramLogs(logs: string[], staging: boolean): string; export declare const getSimulationResult: (connection: Connection, instructions: Array, payer: PublicKey, lookupTables?: Array, staging?: boolean) => Promise<{ unitsConsumed?: number; error?: Error; serializedTx?: String; }>;