import { z } from "zod"; import type { RuntimeIngressDispatchBlock } from "../../../runtime/ingress"; import { X402_PROTECTED_TOOL_READINESS_VERSION, X402ProtectedToolReadinessRawSiblingPostureSchema, type X402ProtectedToolReadinessAuthorityBoundary } from "../protected-tool-readiness"; export declare const X402_PROTECTED_TOOL_FACADE_VERSION: "handshake.runtime.x402-protected-tool-facade.v1"; export declare const X402_PROTECTED_TOOL_NAME: "handshake.actions.x402_payment.propose"; export declare const ProtectedX402ToolFacadeInputSchema: z.ZodObject<{ schemaVersion: z.ZodDefault>; requestId: z.ZodString; principalId: z.ZodString; agentId: z.ZodString; principalIntentRef: z.ZodString; generatedCodeOrSpecRef: z.ZodString; runtimeAdapterRef: z.ZodString; runId: z.ZodString; dispatchBoundaryRef: z.ZodString; dispatchRef: z.ZodString; operatingEnvelopeId: z.ZodString; toolCapabilityId: z.ZodString; actionTypeId: z.ZodString; gatewayRegistryEntryId: z.ZodString; gatewayId: z.ZodString; policyOwnerRef: z.ZodString; evidenceConsumerRef: z.ZodString; contractExpiresAt: z.ZodString; idempotencyKey: z.ZodString; metadataDigest: z.ZodString; toolCatalogDigest: z.ZodString; actionCatalogDigest: z.ZodString; gatewayRegistryDigest: z.ZodString; metadataFreshness: z.ZodDefault>; policyFreshness: z.ZodDefault>; installReadiness: z.ZodDefault>; gatewayPosture: z.ZodDefault>; readinessContractVersion: z.ZodDefault>; readinessProofLevel: z.ZodDefault>; gatewayReadinessRef: z.ZodString; gatewayReadinessDigest: z.ZodString; readinessExpiresAt: z.ZodString; installDigest: z.ZodString; probePostureDigest: z.ZodString; gatewayRegistrationRef: z.ZodString; gatewayCredentialRefDigest: z.ZodString; gatewayCredentialCustodyStatus: z.ZodEnum<{ unknown: "unknown"; gateway_held: "gateway_held"; fixture_gateway_held: "fixture_gateway_held"; agent_exposed: "agent_exposed"; }>; gatewayCustodyProofPacketRef: z.ZodString; gatewayCustodyProofPacketDigest: z.ZodString; gatewayCustodyClaimLevel: z.ZodEnum<{ proof_gap: "proof_gap"; local_fixture: "local_fixture"; customer_gateway_evidence: "customer_gateway_evidence"; provider_gateway_evidence: "provider_gateway_evidence"; }>; gatewayCustodyExternalVerificationStatus: z.ZodEnum<{ not_required: "not_required"; required_before_live_claim: "required_before_live_claim"; verified_by_official_source: "verified_by_official_source"; }>; gatewayCustodyProofExpiresAt: z.ZodString; rawSiblingPosture: z.ZodDefault>; rawSiblingProofRefs: z.ZodDefault>; readinessAuthorityBoundary: z.ZodDefault; createsAuthority: z.ZodLiteral; createsPolicyDecision: z.ZodLiteral; createsGreenlight: z.ZodLiteral; performsGatewayCheck: z.ZodLiteral; performsMutation: z.ZodLiteral; resolvesCredential: z.ZodLiteral; invokesSigner: z.ZodLiteral; createsPaymentMaterial: z.ZodLiteral; createsPaymentSignature: z.ZodLiteral; exportsReceipt: z.ZodLiteral; mintsTerminalCertificate: z.ZodLiteral; claimsHostedOperation: z.ZodLiteral; claimsProviderCustody: z.ZodLiteral; claimsSettlement: z.ZodLiteral; claimsHostWideContainment: z.ZodLiteral; certifiesMarketplace: z.ZodLiteral; }, z.core.$strict>>; policyVersionRef: z.ZodString; policyVersionDigest: z.ZodString; rawCredentialRefsIncluded: z.ZodDefault>; endpointUrl: z.ZodString; payee: z.ZodString; payTo: z.ZodString; network: z.ZodString; token: z.ZodString; asset: z.ZodString; atomicAmount: z.ZodString; x402EvidenceProfile: z.ZodLiteral<"official_payment_required">; paymentRequirementsDigest: z.ZodString; paymentRequiredEvidenceRef: z.ZodString; facilitatorRef: z.ZodDefault>; intendedHttpMethod: z.ZodString; intendedRequestUrl: z.ZodString; intendedRequestBodyPosture: z.ZodEnum<{ unsupported: "unsupported"; digest_bound: "digest_bound"; no_body: "no_body"; omitted: "omitted"; }>; intendedRequestBodyDigest: z.ZodNullable; selectedHeadersDigest: z.ZodString; providerEnvironmentPosture: z.ZodEnum<{ unknown: "unknown"; local_reference_sandbox: "local_reference_sandbox"; external_sandbox: "external_sandbox"; live: "live"; }>; providerEnvironmentRef: z.ZodNullable; x402Version: z.ZodNumber; x402Scheme: z.ZodLiteral<"exact">; maxTimeoutSeconds: z.ZodNumber; selectedPaymentRequirementIndex: z.ZodNumber; selectedPaymentRequirementDigest: z.ZodString; sdkPackageVersions: z.ZodRecord; extensionKeys: z.ZodDefault>; sequenceNumber: z.ZodDefault; loopDetected: z.ZodDefault; retryDetected: z.ZodDefault; branchDetected: z.ZodDefault; correlationRef: z.ZodDefault>; evidenceRefs: z.ZodDefault>; }, z.core.$strict>; export type ProtectedX402ToolFacadeInput = z.input; type ProtectedX402ToolFacadeOutcome = "dispatch_block_prepared" | "install_not_ready" | "gateway_offline" | "metadata_stale" | "refused" | "tool_execution_error"; type ProtectedX402ToolFacadeNextAction = "read_evidence" | "reload_metadata" | "fix_install" | "wait_for_gateway" | "recraft_request" | "stop"; type ProtectedX402ToolFacadeProductBinding = { principalId: string; agentId: string; runtimeAdapterRef: string; operatingEnvelopeId: string; toolCapabilityId: string; actionTypeId: string; gatewayRegistryEntryId: string; gatewayId: string; readinessContractVersion: typeof X402_PROTECTED_TOOL_READINESS_VERSION; gatewayReadinessRef: string; gatewayReadinessDigest: string; readinessProofLevel: "none" | "local_compilation" | "local_classification" | "control_plane_registration"; readinessExpiresAt: string; installDigest: string; probePostureDigest: string; gatewayRegistrationRef: string; gatewayCredentialRefDigest: string; gatewayCredentialCustodyStatus: string; gatewayCustodyProofPacketRef: string; gatewayCustodyProofPacketDigest: string; gatewayCustodyClaimLevel: string; gatewayCustodyExternalVerificationStatus: string; gatewayCustodyProofExpiresAt: string; rawSiblingPosture: z.infer; readinessAuthorityBoundary: X402ProtectedToolReadinessAuthorityBoundary; policyOwnerRef: string; policyVersionRef: string; policyVersionDigest: string; evidenceConsumerRef: string; contractExpiresAt: string; metadataDigest: string; toolCatalogDigest: string; actionCatalogDigest: string; gatewayRegistryDigest: string; policyFreshness: "fresh" | "stale" | "unknown"; }; type ProtectedX402ToolFacadeBase = { schemaVersion: typeof X402_PROTECTED_TOOL_FACADE_VERSION; toolName: typeof X402_PROTECTED_TOOL_NAME; actionClass: "x402_payment.exact"; protectedSurfaceKind: "x402_payment"; productBinding: ProtectedX402ToolFacadeProductBinding | null; idempotencyKey: string | null; outcome: ProtectedX402ToolFacadeOutcome; authorityCreated: false; greenlightCreated: false; gatewayCheckPerformed: false; mutationAttempted: false; credentialMaterialIncluded: false; mutationCommandIncluded: false; rawInternalRecordIncluded: false; receiptExportCreated: false; authorityCertificateMinted: false; reasonCodes: string[]; nextAction: ProtectedX402ToolFacadeNextAction; evidenceRefs: string[]; challengeRef: string | null; correlationRef: string | null; runtimeIngressBlock: RuntimeIngressDispatchBlock | null; nonClaims: readonly string[]; }; export type ProtectedX402ToolFacadeResult = (ProtectedX402ToolFacadeBase & { outcome: "dispatch_block_prepared"; nextAction: "read_evidence"; runtimeIngressBlock: RuntimeIngressDispatchBlock; }) | (ProtectedX402ToolFacadeBase & { outcome: Exclude; runtimeIngressBlock: null; }); export declare function prepareProtectedX402ToolDispatch(inputValue: unknown): ProtectedX402ToolFacadeResult; export {};