/** * @module receipt * @description Receipt-batch and receipt-proof helpers for DisputeWindow escrow resolution. */ import { type AccountMeta, type PublicKey, type TransactionSignature } from "@solana/web3.js"; import { BN } from "@coral-xyz/anchor"; import { BaseModule } from "./base"; import type { ReceiptBatchData } from "../types"; type Bytes32Like = Uint8Array | Buffer | number[]; type SignatureLike = Uint8Array | Buffer | number[]; export interface SubmitReceiptProofArgs { readonly depositor: PublicKey; readonly escrowNonce: BN | number | bigint; readonly batchIndex: number; readonly settlementIndex: BN | number | bigint; readonly receiptHashes: readonly Bytes32Like[]; readonly merkleProofs: readonly (readonly Bytes32Like[])[]; readonly depositorSignatures: readonly SignatureLike[]; readonly agentSignatures: readonly SignatureLike[]; readonly agentWallet?: PublicKey; } export declare function buildReceiptSignatureMessage(args: { readonly programId?: PublicKey; readonly escrow: PublicKey; readonly pendingSettlement: PublicKey; readonly dispute: PublicKey; readonly receiptHash: Bytes32Like; }): Buffer; export declare class ReceiptModule extends BaseModule { deriveReceiptBatch(escrowV2Pda: PublicKey, batchIndex: number): readonly [PublicKey, number]; inscribeReceiptBatch(args: { readonly depositor: PublicKey; readonly escrowNonce: BN | number | bigint; readonly batchIndex: number; readonly merkleRoot: Bytes32Like; readonly callCount: number; readonly periodStart: BN | number | bigint; readonly periodEnd: BN | number | bigint; }): Promise; submitReceiptProof(args: SubmitReceiptProofArgs): Promise; autoResolveDispute(args: { readonly depositor: PublicKey; readonly agentWallet: PublicKey; readonly escrowNonce: BN | number | bigint; readonly settlementIndex: BN | number | bigint; readonly splAccounts?: AccountMeta[]; }): Promise; fetchReceiptBatch(escrowV2Pda: PublicKey, batchIndex: number): Promise; fetchReceiptBatchNullable(escrowV2Pda: PublicKey, batchIndex: number): Promise; } export {}; //# sourceMappingURL=receipt.d.ts.map