/** * AP2 (A2A Payment) Protocol * Agent-to-Agent Payment Protocol for autonomous transactions */ export interface AP2PaymentRequest { id: string; from: string; to: string; amount: string; currency: string; network: string; description?: string; metadata?: Record; createdAt: number; expiresAt: number; } export interface AP2PaymentResponse { requestId: string; status: 'pending' | 'approved' | 'rejected' | 'completed' | 'failed'; transactionHash?: string; message?: string; timestamp: number; } export interface AP2PaymentVerification { requestId: string; transactionHash: string; network: string; verified: boolean; confirmations: number; timestamp: number; } export declare class AP2Protocol { private network; private currency; constructor(network?: string, currency?: string); createPaymentRequest(from: string, to: string, amount: number, description?: string, metadata?: Record): AP2PaymentRequest; createPaymentResponse(requestId: string, status: AP2PaymentResponse['status'], transactionHash?: string, message?: string): AP2PaymentResponse; verifyPayment(requestId: string, transactionHash: string, verified: boolean, confirmations?: number): AP2PaymentVerification; isExpired(request: AP2PaymentRequest): boolean; validateRequest(request: AP2PaymentRequest): { valid: boolean; errors: string[]; }; encodeRequest(request: AP2PaymentRequest): string; decodeRequest(encoded: string): AP2PaymentRequest; } export declare class AP2PaymentNegotiation { private requests; private responses; constructor(); proposePayment(request: AP2PaymentRequest): void; respondToPayment(response: AP2PaymentResponse): void; getRequest(requestId: string): AP2PaymentRequest | undefined; getResponse(requestId: string): AP2PaymentResponse | undefined; clearExpiredRequests(): number; } //# sourceMappingURL=AP2Protocol.d.ts.map