import type { PublicClient, Chain, Transport } from 'viem'; import type { PaymentAgreement } from '@azeth/common'; /** Set the cache TTL (useful for tests) */ export declare function setAgreementCacheTtl(ttlMs: number): void; /** Clear the agreement cache */ export declare function clearAgreementCache(): void; /** Find an active, executable agreement from a given account to a specific payee. * Uses getAgreementData for combined agreement + executability + count in 1 RPC call. * Iterates from newest to oldest (newest more likely active). * * @param publicClient - viem public client for on-chain reads * @param moduleAddress - PaymentAgreementModule contract address * @param account - The payer's smart account address * @param payee - The payee address to match * @param token - Optional token address to match * @param minAmount - Optional minimum amount per interval * @returns The first matching active + executable agreement, or null */ export declare function findActiveAgreementForPayee(publicClient: PublicClient, moduleAddress: `0x${string}`, account: `0x${string}`, payee: `0x${string}`, token?: `0x${string}`, minAmount?: bigint): Promise; //# sourceMappingURL=agreement-cache.d.ts.map