/** * Hosted x402 proxy verification helpers. * * These helpers let a buyer validate a hosted paid-MCP proxy challenge before * any wallet signs. They check the machine-readable 402 payment requirement * and the local buyer controls that sit outside the remote proxy: approval, * spend cap, audit logging, and pooled-token lock-in acceptance. */ type HeaderGetter = { get(_name: string): string | null | undefined; }; type HeaderSource = Record | Array<[string, string]> | HeaderGetter; export type HostedProxyVerificationInput = { status: number; headers?: HeaderSource; body?: string; allowedNetworks: string[]; allowedAssets: string[]; maxAmountRequired?: string | bigint; approvalGate: { required: boolean; state: 'approved' | 'pending' | 'declined' | 'not_configured'; }; auditLog: { required: boolean; destination?: string; correlationId?: string; }; upstreamCredentialMode: 'buyer-owned' | 'operator-pooled' | 'unknown'; pooledTokenLockInAccepted?: boolean; }; export type HostedProxyVerifiedOffer = { scheme?: string; network: string; asset: string; amountRequired: string; payTo: string; }; export type HostedProxyVerificationResult = { ok: boolean; failures: string[]; warnings: string[]; source: 'payment-required-header' | 'x-payment-required-header' | 'body' | 'none'; offers: HostedProxyVerifiedOffer[]; }; export declare function verifyHostedProxyPaymentRequirement(input: HostedProxyVerificationInput): HostedProxyVerificationResult; export {}; //# sourceMappingURL=hosted-proxy-verification.d.ts.map