import { PublicKey } from "@solana/web3.js"; import { type VersionedPrivacyPoolIdl } from "../idl/index.js"; import type { CommitmentEvent, NullifierSpentEvent, ParsedVeiloEvent } from "./types.js"; /** * Decode logs using the current, legacy, and legacy-2 IDLs. * * IDLs are evaluated in the relayer's current/legacy/legacy-2 order. Anchor's * Borsh decoder accepts trailing bytes, however, so every successful parse is * considered and the richest result wins. That preserves the compact fields * in legacy-2 events instead of misclassifying them as the shorter legacy form. * Ties retain the relayer's order. */ export declare function parseVeiloEventsWithFallback(logMessages: readonly string[] | null | undefined, programId: PublicKey, idls?: readonly VersionedPrivacyPoolIdl[]): ParsedVeiloEvent[]; export declare function parseCommitmentEventsFromLogs(params: { logMessages: readonly string[] | null | undefined; programId: PublicKey; txSignature: string; slot: number; }): CommitmentEvent[]; export declare function parseNullifierEventsFromLogs(params: { logMessages: readonly string[] | null | undefined; programId: PublicKey; txSignature: string; slot: number; }): NullifierSpentEvent[];