/** * Chain-neutral x402 gateway profile helpers. * * Paid MCP discovery is moving from one Base endpoint to profile documents that * describe every supported payment rail, settlement/facilitator boundary, * trial/refund policy, and directory manifest path. These helpers validate that * profile shape without assuming every x402 payment rail is EVM-compatible. */ export type X402NetworkNamespace = 'eip155' | 'solana' | 'tvm' | 'ton' | 'other'; export type X402NetworkDescriptor = { network: string; name: string; gateway: string; namespace?: X402NetworkNamespace; settlementAsset?: string; settlementChainId?: number | string; notes?: string; }; export type X402TrialPolicy = { enabled: boolean; calls?: number; description: string; }; export type X402RefundPolicy = { supported: boolean; mode: 'automatic' | 'manual' | 'none'; description: string; }; export type X402DirectoryManifests = { wellKnownX402: string; glama?: string; smithery?: string; mcpCatalog?: string; openapi?: string; llmsTxt?: string; }; export type X402ChainNeutralGatewayProfile = { serviceName: string; x402Version: number | string; paymentHeader: 'Payment-Signature'; receiptHeader: 'payment-response'; networks: X402NetworkDescriptor[]; facilitator?: string; settlement: { custody: 'non-custodial' | 'facilitator' | 'managed' | 'unknown'; description: string; }; trial: X402TrialPolicy; refund: X402RefundPolicy; manifests: X402DirectoryManifests; }; export type X402ChainNeutralGatewayProfileReport = { serviceName: string; networkNamespaces: X402NetworkNamespace[]; hasEvmNetwork: boolean; hasNonEvmNetwork: boolean; hasDirectoryManifests: boolean; hasExplicitTrialPolicy: boolean; hasExplicitRefundPolicy: boolean; hasSettlementMetadata: boolean; issues: string[]; }; export declare function inferX402NetworkNamespace(network: string): X402NetworkNamespace; export declare function validateX402ChainNeutralGatewayProfile(profile: X402ChainNeutralGatewayProfile): X402ChainNeutralGatewayProfileReport; export declare function buildAgentPayChainNeutralGatewayProfile(): X402ChainNeutralGatewayProfile; //# sourceMappingURL=x402-chain-neutral-gateway-profile.d.ts.map