import { Idl } from "@coral-xyz/anchor";
import web3, { Address, Commitment, GetSignaturesForAddressApi, RpcTransport, Signature } from "@solana/web3-v2.js";
type GetSignaturesForAddressConfig = Parameters<GetSignaturesForAddressApi["getSignaturesForAddress"]>[1];
/**
 * Reads all events for a specific program.
 */
export declare function readProgramEvents(rpc: web3.Rpc<web3.SolanaRpcApiFromTransport<RpcTransport>>, program: Address, anchorIdl: Idl, finality?: Commitment, options?: GetSignaturesForAddressConfig): Promise<{
    confirmationStatus: string;
    blockTime: number | web3.UnixTimestamp;
    signature: web3.Signature;
    slot: bigint;
    name: string;
    program: Address;
    data: any;
}[]>;
/**
 * Reads events from a transaction.
 */
export declare function readEvents(rpc: web3.Rpc<web3.SolanaRpcApiFromTransport<RpcTransport>>, txSignature: Signature, programId: Address, programIdl: Idl, commitment?: Commitment): Promise<{
    program: Address;
    data: any;
    name: string | undefined;
}[]>;
export {};
