import { z } from "zod"; import type { Eip712TypedCommitmentInput, NormalizedEip712TypedCommitment } from "../../../protocol/areas/typed-action-commitment"; import type { CredentialResolutionEvidence } from "../../../protocol/areas/credential-custody"; import type { VerifiedGatewayCheck } from "../../../protocol/areas/gateway-gate"; export declare const X402PaymentParametersSchema: z.ZodObject<{ endpointUrl: z.ZodString; endpointDomain: z.ZodString; intendedHttpMethod: z.ZodDefault>; intendedRequestUrl: z.ZodDefault>; intendedRequestBodyPosture: z.ZodDefault>; intendedRequestBodyDigest: z.ZodDefault>; selectedHeadersDigest: z.ZodDefault>; providerEnvironmentPosture: z.ZodDefault>; providerEnvironmentRef: z.ZodDefault>; x402Version: z.ZodDefault>; x402Scheme: z.ZodDefault>; payee: z.ZodString; payTo: z.ZodDefault>; network: z.ZodString; token: z.ZodString; asset: z.ZodDefault>; atomicAmount: z.ZodString; x402EvidenceProfile: z.ZodDefault>; paymentRequirementsDigest: z.ZodString; selectedPaymentRequirementIndex: z.ZodDefault>; selectedPaymentRequirementDigest: z.ZodDefault>; maxTimeoutSeconds: z.ZodDefault>; paymentIdentifierPosture: z.ZodDefault>; paymentIdentifierRef: z.ZodDefault>; paymentIdentifierDigest: z.ZodDefault>; facilitatorRef: z.ZodDefault>; sdkPackageVersions: z.ZodDefault>; extensionKeys: z.ZodDefault>; gatewayCredentialRefId: z.ZodString; gatewayCredentialRefDigest: z.ZodString; gatewayReadinessRef: z.ZodString; gatewayReadinessDigest: z.ZodString; policyVersionRef: z.ZodString; policyVersionDigest: z.ZodString; }, z.core.$strict>; export type X402PaymentParameters = z.infer; export type X402PaymentSignatureCommand = { verifiedGate: VerifiedGatewayCheck; parameters: X402PaymentParameters; credentialResolutionEvidence: CredentialResolutionEvidence; typedActionCommitment?: NormalizedEip712TypedCommitment; credentialUseRef: string; providerRequestRef: string; providerOperationRef: string; }; export type X402LocalReferenceSandboxEvidenceBoundary = { boundaryKind: "x402_local_reference_sandbox"; evidenceProfile: "local_reference_downstream_fixture"; providerEnvironmentPosture: "local_reference_sandbox"; fixtureScope: "local_reference_only"; signedRetryPosture: "not_observed" | "post_gateway_check_observation_only"; authorityCreated: false; paymentFinalityClaimed: false; settlementFinalityClaimed: false; facilitatorOperationClaimed: false; sellerMiddlewareClaimed: false; providerCustodyClaimed: false; liveProviderOperationClaimed: false; }; export type X402PaymentSignatureEvidence = { evidenceRef: string; surfaceOperationRef: string; paymentSignatureHeaderName: "PAYMENT-SIGNATURE"; paymentSignatureHeaderRef: string; paymentSignatureDigest: `sha256:${string}`; paymentPayloadShape: "official_x402_payment_payload_v2" | "local_fixture_payment_signature"; paymentPayloadRef?: string; paymentPayloadDigest?: `sha256:${string}`; paymentIdentifierRef?: string; paymentIdentifierDigest?: `sha256:${string}`; credentialMaterialPosture: "gateway_held_redacted" | "local_fixture"; downstreamPaymentStatus: "succeeded" | "unknown"; paymentResponseEvidenceRef: string | null; providerRequestRef: string | null; providerOperationRef: string | null; additionalEvidenceRefs?: string[]; localReferenceSandboxBoundary?: X402LocalReferenceSandboxEvidenceBoundary; }; export interface X402WalletSigningSurface { signPayment(command: X402PaymentSignatureCommand): Promise; } export type X402WalletTypedPayloadEvidence = { chainId?: string; verifyingContract?: string; selectedPaymentRequirementIndex?: number; selectedPaymentRequirementDigest?: `sha256:${string}`; paramsDigest?: `sha256:${string}`; idempotencyKey?: string; verifierContextDigest?: `sha256:${string}`; expectedVerifierContextDigest?: `sha256:${string}`; signingMethod?: Eip712TypedCommitmentInput["signingMethod"]; signerKind?: Eip712TypedCommitmentInput["signerKind"]; signerRef?: string; domainSeparator?: string; structHash?: string; eip712Digest?: string; nonceRef?: string; nonceDigest?: `sha256:${string}`; replayStatus?: Eip712TypedCommitmentInput["replayStatus"]; };