import { estimateComputeUnitLimitFactory } from "@solana-program/compute-budget"; import { BaseTransactionMessage, Commitment, Signature, TransactionMessageWithFeePayer } from "@solana/kit"; /** * Factory function that creates a compute unit estimator and setter. * * This function wraps the Solana compute unit estimation with automatic * instruction injection to set the compute unit limit on transactions. * * @param params - Parameters for the compute unit limit factory * @returns A function that estimates and sets compute units for transactions */ export declare function estimateAndSetComputeUnitLimitFactory(...params: Parameters): (transactionMessage: T) => Promise, "instructions"> & { readonly instructions: readonly [...T["instructions"], import("@solana-program/compute-budget").SetComputeUnitLimitInstruction, []>]; }>; /** * Parses and extracts event CPI instruction data from a Solana transaction. * * This function fetches a transaction by signature and extracts the event * Cross-Program Invocation (CPI) instruction that contains the event authority. * * @param rpcUrl - The Solana RPC endpoint URL * @param signature - The transaction signature to parse * @param commitment - The commitment level for fetching the transaction (default: "confirmed") * @returns The event CPI instruction data * @throws Error if transaction is not found or no events are found */ export declare function parseTransactionEventCPI(rpcUrl: string, signature: Signature, commitment?: Commitment): Promise<{ data: any; name: string; }>; //# sourceMappingURL=utils.d.ts.map