/** * ERC-7753 Escrow V2 — Two-Party Escrow with Dispute Resolution */ import { ethers } from 'ethers'; export interface EscrowRecord { creator: string; counterparty: string; arbitrator: string; token: string; grossAmount: bigint; netAmount: bigint; proofHash: string; status: number; lockedAt: number; } export interface EscrowCreateOptions { payee: string; token: string; grossAmount: bigint; arbitrator: string; } export declare class EscrowClient { private contract; constructor(address: string, signerOrProvider: ethers.Signer | ethers.Provider); /** * Create an escrow. 1% fee deducted immediately; 99% locked until release. */ create(opts: EscrowCreateOptions): Promise; /** Release to payee with proof-of-delivery hash */ release(escrowId: string, proofHash: string): Promise; /** Refund to creator (payer), only callable by creator before dispute */ refund(escrowId: string): Promise; /** Open a dispute — arbitrator will resolve */ dispute(escrowId: string): Promise; /** Resolve dispute (arbitrator only): true → payee wins, false → creator wins */ resolve(escrowId: string, payeeWins: boolean): Promise; getEscrow(escrowId: string): Promise; } //# sourceMappingURL=ERC7753EscrowClient.d.ts.map