import { z } from "zod"; import type { ActionContract, ProposeActionContractInput } from "../../protocol/areas/action-contract"; import type { CompileIntentInput, IntentCompilationRecord } from "../../protocol/areas/intent-compilation"; export declare const X402PaymentAttemptSchema: z.ZodObject<{ principalIntentRef: z.ZodString; generatedCodeOrSpecRef: z.ZodString; runtimeExecutionId: z.ZodDefault>; generatedExecutionGraphId: z.ZodDefault>; generatedExecutionNodeId: z.ZodDefault>; toolCallDraftId: z.ZodDefault>; endpointUrl: z.ZodString; payee: z.ZodString; network: z.ZodString; token: z.ZodString; atomicAmount: z.ZodString; paymentRequirementsDigest: z.ZodString; paymentRequiredEvidenceRef: z.ZodOptional; facilitatorRef: z.ZodDefault>; sequenceNumber: z.ZodDefault; requiredPriorActionContractIds: z.ZodDefault>; }, z.core.$strict>; export type X402PaymentAttempt = z.input; export type X402PaymentRuntimeConfig = { tenantId: string; organizationId: string; principalId: string; agentId: string; runId: string; runtimeAdapterId: string; operatingEnvelopeId: string; toolCatalogRef: string; actionCatalogRef: string; gatewayRegistryRef: string; toolCapabilityId: string; actionTypeId: string; gatewayRegistryEntryId: string; gatewayId: string; contractExpiresAt: string; signingSecret?: string; }; export type X402PaymentRuntimeProtocol = { compileIntent(input: CompileIntentInput): Promise; proposeActionContract(input: ProposeActionContractInput): Promise; }; export type X402PaymentRuntimeResult = { outcome: "action_contract_proposed"; intentCompilation: IntentCompilationRecord; actionContract: ActionContract; } | { outcome: "intent_compilation_refused"; intentCompilation: IntentCompilationRecord; actionContract: null; refusalReasonCodes: string[]; }; export declare function proposeX402PaymentActionContract(protocol: X402PaymentRuntimeProtocol, config: X402PaymentRuntimeConfig, attemptValue: X402PaymentAttempt): Promise; export declare function compileX402PaymentIntent(protocol: Pick, config: X402PaymentRuntimeConfig, attemptValue: X402PaymentAttempt): Promise; export declare function buildX402PaymentCompileIntentInput(config: X402PaymentRuntimeConfig, attemptValue: X402PaymentAttempt): Promise; export declare function refusalReasonCodesForCompilation(intentCompilation: IntentCompilationRecord): string[];