UNPKG

@thorium-dev-group/x402-mcp-extension

Version:
13 lines (12 loc) 836 B
import type { PaymentPayload, PaymentRequirements } from 'x402/types'; import { BaseFacilitatorService, type ValidationResult } from './base-facilitator'; import { PaymentResult } from '../../../shared/schemas'; export declare class MockFacilitatorService extends BaseFacilitatorService { private shouldValidate; private shouldExecute; private mockTxHash; constructor(shouldValidate?: boolean, shouldExecute?: boolean, mockTxHash?: string); protected performValidation(payload: PaymentPayload, paymentRequirements: any): Promise<ValidationResult>; protected performExecution(payload: PaymentPayload, paymentRequirements: PaymentRequirements): Promise<PaymentResult>; } export declare function createMockFacilitator(shouldValidate?: boolean, shouldExecute?: boolean, mockTxHash?: string): MockFacilitatorService;