@relai-fi/x402 0.6.8 → 0.6.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -85,7 +85,7 @@ interface GeneratePaymentCodesBatchParams {
85
85
  /** Override the USDC contract address */
86
86
  usdcContract?: string;
87
87
  /** RelAI auth token (required — batch endpoint is authenticated) */
88
- authToken: string;
88
+ authToken?: string;
89
89
  }
90
90
  interface PaymentCode {
91
91
  code: string;
@@ -186,7 +186,7 @@ payee?: string): Promise<RedeemResult>;
186
186
  /**
187
187
  * Get the current status of a payment code.
188
188
  */
189
- declare function getPaymentCode(config: PaymentCodeConfig, code: string): Promise<CodeStatus>;
189
+ declare function getPaymentCode$1(config: PaymentCodeConfig, code: string): Promise<CodeStatus>;
190
190
  /**
191
191
  * Cancel a payment code before it is redeemed.
192
192
  * Soft-cancels immediately (relayer will refuse to settle);
@@ -431,6 +431,10 @@ interface GenerateSolanaPaymentCodeParams {
431
431
  solanaRpcUrl?: string;
432
432
  /** Code TTL in seconds (min 60, max 604800 = 7 days, default 86400 = 24 h) */
433
433
  ttlSeconds?: number;
434
+ /** Create a private claim link instead of returning a visible code */
435
+ claimLink?: boolean;
436
+ /** Optional facilitator-side description associated with the code */
437
+ description?: string;
434
438
  }
435
439
  interface SolanaPaymentCode {
436
440
  /** 8-char alphanumeric code, e.g. "X7K9P2AB" */
@@ -444,6 +448,29 @@ interface SolanaPaymentCode {
444
448
  /** Solscan explorer link for the funding transaction */
445
449
  explorerUrl: string;
446
450
  }
451
+ interface SolanaClaimLink {
452
+ [key: string]: unknown;
453
+ validUntil: number;
454
+ amount: string;
455
+ network: string;
456
+ explorerUrl: string;
457
+ claimLink: true;
458
+ claimToken?: string;
459
+ claimUrl?: string | null;
460
+ description?: string | null;
461
+ }
462
+ interface SolanaPaymentCodeBatchResult {
463
+ registered: number;
464
+ fundingTxHash: string;
465
+ explorerUrl: string;
466
+ network: string;
467
+ totalAmount: string;
468
+ codes: SolanaPaymentCode[];
469
+ failed?: Array<{
470
+ index: number;
471
+ error: string;
472
+ }>;
473
+ }
447
474
  interface SolanaCodeStatus {
448
475
  code: string;
449
476
  amount: string;
@@ -497,7 +524,7 @@ interface SolanaWalletAdapter {
497
524
  * console.log('Share this code:', code); // "ABCD1234"
498
525
  * ```
499
526
  */
500
- declare function generateSolanaPaymentCode(config: SolanaCodeConfig, wallet: SolanaWalletAdapter, params: GenerateSolanaPaymentCodeParams): Promise<SolanaPaymentCode>;
527
+ declare function generateSolanaPaymentCode(config: SolanaCodeConfig, wallet: SolanaWalletAdapter, params: GenerateSolanaPaymentCodeParams): Promise<SolanaPaymentCode | SolanaClaimLink>;
501
528
  /**
502
529
  * Get the current status of a Solana payment code.
503
530
  */
@@ -526,4 +553,119 @@ declare function cancelSolanaPaymentCode(config: SolanaCodeConfig, code: string,
526
553
  network?: 'solana' | 'solana-devnet';
527
554
  }): Promise<SolanaCodeCancelResult>;
528
555
 
529
- export { type BatchCodeItem, type BatchPaymentCodesResult, type CodeStatus, type CreatePayRequestParams, type GeneratePaymentCodeParams, type GeneratePaymentCodesBatchParams, type GenerateSolanaPaymentCodeParams, NETWORK_CONFIGS, type NetworkConfig, type PayPayRequestWithCodeOptions, type PayRequest, type PayRequestInfo, type PayRequestResult, type PaymentCode, type PaymentCodeConfig, type PaymentCodeNetwork, type PaymentCodeSigner, type PaymentRequestConfig, type PaymentRequestNetwork, type RedeemResult, type SolanaCodeCancelResult, type SolanaCodeConfig, type SolanaCodeRedeemResult, type SolanaCodeStatus, type SolanaPayRequestOptions, type SolanaPayRequestResult, type SolanaPaymentCode, type SolanaWalletAdapter$1 as SolanaWalletAdapter, cancelPaymentCode, cancelSolanaPaymentCode, createPayRequest, createPrivateKeySigner, generatePaymentCode, generatePaymentCodesBatch, generateSolanaPaymentCode, getPayRequest, getPaymentCode, getSolanaPaymentCode, payPayRequest, payPayRequestWithCode, payPayRequestWithSolana, redeemPaymentCode, redeemSolanaPaymentCode };
556
+ type CurrentPaymentCodeNetwork = PaymentCodeNetwork | 'solana' | 'solana-devnet';
557
+ interface EvmCurrentPaymentCodeSigner extends PaymentCodeSigner {
558
+ signMessage(message: string): Promise<string>;
559
+ sendTransaction?(tx: {
560
+ to: string;
561
+ data: string;
562
+ }): Promise<{
563
+ hash: string;
564
+ wait(): Promise<unknown>;
565
+ }>;
566
+ }
567
+ interface SolanaCurrentPaymentCodeWallet {
568
+ publicKey: {
569
+ toString(): string;
570
+ } | null;
571
+ signTransaction<T>(transaction: T): Promise<T>;
572
+ signMessage?(message: Uint8Array): Promise<Uint8Array>;
573
+ }
574
+ interface CreatePaymentCodeParamsBase {
575
+ amount: number | bigint;
576
+ ttlSeconds?: number;
577
+ description?: string;
578
+ claimLink?: boolean;
579
+ }
580
+ interface CreateEvmPaymentCodeParams extends CreatePaymentCodeParamsBase {
581
+ signer: PaymentCodeSigner;
582
+ network?: PaymentCodeNetwork;
583
+ payee?: string;
584
+ usdcContract?: string;
585
+ }
586
+ interface CreateSolanaPaymentCodeParams extends CreatePaymentCodeParamsBase {
587
+ network: 'solana' | 'solana-devnet';
588
+ wallet: SolanaCurrentPaymentCodeWallet;
589
+ }
590
+ type CreatePaymentCodeParams = CreateEvmPaymentCodeParams | CreateSolanaPaymentCodeParams;
591
+ interface CreatePaymentCodesBatchItem {
592
+ amount: number | bigint;
593
+ ttlSeconds?: number;
594
+ description?: string;
595
+ }
596
+ interface CreateEvmPaymentCodesBatchParams {
597
+ signer: PaymentCodeSigner;
598
+ network?: PaymentCodeNetwork;
599
+ payee?: string;
600
+ usdcContract?: string;
601
+ codes: CreatePaymentCodesBatchItem[];
602
+ }
603
+ interface CreateSolanaPaymentCodesBatchParams {
604
+ network: 'solana' | 'solana-devnet';
605
+ wallet: SolanaCurrentPaymentCodeWallet;
606
+ codes: CreatePaymentCodesBatchItem[];
607
+ }
608
+ type CreatePaymentCodesBatchParams = CreateEvmPaymentCodesBatchParams | CreateSolanaPaymentCodesBatchParams;
609
+ interface ListOwnerPaymentCodesParamsEvm {
610
+ walletType: 'evm';
611
+ wallet: EvmCurrentPaymentCodeSigner;
612
+ }
613
+ interface ListOwnerPaymentCodesParamsSolana {
614
+ walletType: 'solana';
615
+ wallet: SolanaCurrentPaymentCodeWallet & {
616
+ signMessage(message: Uint8Array): Promise<Uint8Array>;
617
+ };
618
+ }
619
+ type ListOwnerPaymentCodesParams = ListOwnerPaymentCodesParamsEvm | ListOwnerPaymentCodesParamsSolana;
620
+ interface RedeemStoredPaymentCodeParams {
621
+ payee: string;
622
+ evmNetwork?: PaymentCodeNetwork;
623
+ solanaNetwork?: 'solana' | 'solana-devnet';
624
+ }
625
+ interface CancelStoredPaymentCodeParams {
626
+ wallet?: EvmCurrentPaymentCodeSigner;
627
+ solanaWallet?: SolanaCurrentPaymentCodeWallet;
628
+ network?: CurrentPaymentCodeNetwork;
629
+ }
630
+ type ClaimPaymentLinkMode = 'claim-usdc' | 'claim-code';
631
+ interface ClaimPaymentLinkParamsBase {
632
+ mode?: ClaimPaymentLinkMode;
633
+ payee?: string;
634
+ evmNetwork?: PaymentCodeNetwork;
635
+ solanaNetwork?: 'solana' | 'solana-devnet';
636
+ }
637
+ interface ClaimPaymentLinkParamsEvm extends ClaimPaymentLinkParamsBase {
638
+ wallet: EvmCurrentPaymentCodeSigner;
639
+ solanaWallet?: never;
640
+ }
641
+ interface ClaimPaymentLinkParamsSolana extends ClaimPaymentLinkParamsBase {
642
+ wallet?: never;
643
+ solanaWallet: SolanaCurrentPaymentCodeWallet & {
644
+ signMessage(message: Uint8Array): Promise<Uint8Array>;
645
+ };
646
+ }
647
+ type ClaimPaymentLinkParams = ClaimPaymentLinkParamsEvm | ClaimPaymentLinkParamsSolana;
648
+ interface PayPayRequestWithStoredCodeOptions {
649
+ allowOverpayment?: boolean;
650
+ returnChange?: 'code' | 'wallet';
651
+ changeAddress?: string;
652
+ }
653
+ type CurrentPaymentCodeResponse = Record<string, unknown> | SolanaPaymentCode | SolanaClaimLink;
654
+ type OwnerPaymentCodesResponse = Record<string, unknown>;
655
+ type PaymentCodeDetailsResponse = Record<string, unknown>;
656
+ type RedeemStoredPaymentCodeResponse = Record<string, unknown>;
657
+ type CancelStoredPaymentCodeResponse = Record<string, unknown> | SolanaCodeCancelResult;
658
+ type ClaimPaymentLinkResponse = Record<string, unknown>;
659
+ type PayPayRequestWithStoredCodeResponse = Record<string, unknown>;
660
+ type PaymentCodesBatchResponse = Record<string, unknown> | SolanaPaymentCodeBatchResult;
661
+ declare function createPaymentCode(config: PaymentCodeConfig, params: CreatePaymentCodeParams): Promise<CurrentPaymentCodeResponse>;
662
+ declare function createPaymentCodesBatch(config: PaymentCodeConfig, params: CreatePaymentCodesBatchParams): Promise<PaymentCodesBatchResponse>;
663
+ declare function listOwnerPaymentCodes(config: PaymentCodeConfig, params: ListOwnerPaymentCodesParams): Promise<OwnerPaymentCodesResponse>;
664
+ declare function getPaymentCode(config: PaymentCodeConfig, code: string): Promise<PaymentCodeDetailsResponse>;
665
+ declare const getPaymentCodeDetails: typeof getPaymentCode;
666
+ declare function redeemStoredPaymentCode(config: PaymentCodeConfig, code: string, params: RedeemStoredPaymentCodeParams): Promise<RedeemStoredPaymentCodeResponse>;
667
+ declare function cancelStoredPaymentCode(config: PaymentCodeConfig, code: string, params?: CancelStoredPaymentCodeParams): Promise<CancelStoredPaymentCodeResponse>;
668
+ declare function claimPaymentLink(config: PaymentCodeConfig, claimUrlOrToken: string, params: ClaimPaymentLinkParams): Promise<ClaimPaymentLinkResponse>;
669
+ declare function payPayRequestWithStoredCode(config: PaymentRequestConfig, requestCode: string, paymentCode: string, options?: PayPayRequestWithStoredCodeOptions): Promise<PayPayRequestWithStoredCodeResponse>;
670
+
671
+ export { type BatchCodeItem, type BatchPaymentCodesResult, type CancelStoredPaymentCodeParams, type CancelStoredPaymentCodeResponse, type ClaimPaymentLinkMode, type ClaimPaymentLinkParams, type ClaimPaymentLinkResponse, type CodeStatus, type CreatePayRequestParams, type CreatePaymentCodeParams, type CreatePaymentCodesBatchItem, type CreatePaymentCodesBatchParams, type CurrentPaymentCodeNetwork, type CurrentPaymentCodeResponse, type EvmCurrentPaymentCodeSigner, type GeneratePaymentCodeParams, type GeneratePaymentCodesBatchParams, type GenerateSolanaPaymentCodeParams, type ListOwnerPaymentCodesParams, NETWORK_CONFIGS, type NetworkConfig, type OwnerPaymentCodesResponse, type PayPayRequestWithCodeOptions, type PayPayRequestWithStoredCodeOptions, type PayPayRequestWithStoredCodeResponse, type PayRequest, type PayRequestInfo, type PayRequestResult, type PaymentCode, type PaymentCodeConfig, type PaymentCodeDetailsResponse, type PaymentCodeNetwork, type PaymentCodeSigner, type PaymentCodesBatchResponse, type PaymentRequestConfig, type PaymentRequestNetwork, type RedeemResult, type RedeemStoredPaymentCodeParams, type RedeemStoredPaymentCodeResponse, type SolanaClaimLink, type SolanaCodeCancelResult, type SolanaCodeConfig, type SolanaCodeRedeemResult, type SolanaCodeStatus, type SolanaCurrentPaymentCodeWallet, type SolanaPayRequestOptions, type SolanaPayRequestResult, type SolanaPaymentCode, type SolanaWalletAdapter$1 as SolanaWalletAdapter, cancelPaymentCode, cancelSolanaPaymentCode, cancelStoredPaymentCode, claimPaymentLink, createPayRequest, createPaymentCode, createPaymentCodesBatch, createPrivateKeySigner, generatePaymentCode, generatePaymentCodesBatch, generateSolanaPaymentCode, getPayRequest, getPaymentCode$1 as getPaymentCode, getPaymentCodeDetails, getSolanaPaymentCode, listOwnerPaymentCodes, payPayRequest, payPayRequestWithCode, payPayRequestWithSolana, payPayRequestWithStoredCode, redeemPaymentCode, redeemSolanaPaymentCode, redeemStoredPaymentCode };
package/dist/index.d.ts CHANGED
@@ -85,7 +85,7 @@ interface GeneratePaymentCodesBatchParams {
85
85
  /** Override the USDC contract address */
86
86
  usdcContract?: string;
87
87
  /** RelAI auth token (required — batch endpoint is authenticated) */
88
- authToken: string;
88
+ authToken?: string;
89
89
  }
90
90
  interface PaymentCode {
91
91
  code: string;
@@ -186,7 +186,7 @@ payee?: string): Promise<RedeemResult>;
186
186
  /**
187
187
  * Get the current status of a payment code.
188
188
  */
189
- declare function getPaymentCode(config: PaymentCodeConfig, code: string): Promise<CodeStatus>;
189
+ declare function getPaymentCode$1(config: PaymentCodeConfig, code: string): Promise<CodeStatus>;
190
190
  /**
191
191
  * Cancel a payment code before it is redeemed.
192
192
  * Soft-cancels immediately (relayer will refuse to settle);
@@ -431,6 +431,10 @@ interface GenerateSolanaPaymentCodeParams {
431
431
  solanaRpcUrl?: string;
432
432
  /** Code TTL in seconds (min 60, max 604800 = 7 days, default 86400 = 24 h) */
433
433
  ttlSeconds?: number;
434
+ /** Create a private claim link instead of returning a visible code */
435
+ claimLink?: boolean;
436
+ /** Optional facilitator-side description associated with the code */
437
+ description?: string;
434
438
  }
435
439
  interface SolanaPaymentCode {
436
440
  /** 8-char alphanumeric code, e.g. "X7K9P2AB" */
@@ -444,6 +448,29 @@ interface SolanaPaymentCode {
444
448
  /** Solscan explorer link for the funding transaction */
445
449
  explorerUrl: string;
446
450
  }
451
+ interface SolanaClaimLink {
452
+ [key: string]: unknown;
453
+ validUntil: number;
454
+ amount: string;
455
+ network: string;
456
+ explorerUrl: string;
457
+ claimLink: true;
458
+ claimToken?: string;
459
+ claimUrl?: string | null;
460
+ description?: string | null;
461
+ }
462
+ interface SolanaPaymentCodeBatchResult {
463
+ registered: number;
464
+ fundingTxHash: string;
465
+ explorerUrl: string;
466
+ network: string;
467
+ totalAmount: string;
468
+ codes: SolanaPaymentCode[];
469
+ failed?: Array<{
470
+ index: number;
471
+ error: string;
472
+ }>;
473
+ }
447
474
  interface SolanaCodeStatus {
448
475
  code: string;
449
476
  amount: string;
@@ -497,7 +524,7 @@ interface SolanaWalletAdapter {
497
524
  * console.log('Share this code:', code); // "ABCD1234"
498
525
  * ```
499
526
  */
500
- declare function generateSolanaPaymentCode(config: SolanaCodeConfig, wallet: SolanaWalletAdapter, params: GenerateSolanaPaymentCodeParams): Promise<SolanaPaymentCode>;
527
+ declare function generateSolanaPaymentCode(config: SolanaCodeConfig, wallet: SolanaWalletAdapter, params: GenerateSolanaPaymentCodeParams): Promise<SolanaPaymentCode | SolanaClaimLink>;
501
528
  /**
502
529
  * Get the current status of a Solana payment code.
503
530
  */
@@ -526,4 +553,119 @@ declare function cancelSolanaPaymentCode(config: SolanaCodeConfig, code: string,
526
553
  network?: 'solana' | 'solana-devnet';
527
554
  }): Promise<SolanaCodeCancelResult>;
528
555
 
529
- export { type BatchCodeItem, type BatchPaymentCodesResult, type CodeStatus, type CreatePayRequestParams, type GeneratePaymentCodeParams, type GeneratePaymentCodesBatchParams, type GenerateSolanaPaymentCodeParams, NETWORK_CONFIGS, type NetworkConfig, type PayPayRequestWithCodeOptions, type PayRequest, type PayRequestInfo, type PayRequestResult, type PaymentCode, type PaymentCodeConfig, type PaymentCodeNetwork, type PaymentCodeSigner, type PaymentRequestConfig, type PaymentRequestNetwork, type RedeemResult, type SolanaCodeCancelResult, type SolanaCodeConfig, type SolanaCodeRedeemResult, type SolanaCodeStatus, type SolanaPayRequestOptions, type SolanaPayRequestResult, type SolanaPaymentCode, type SolanaWalletAdapter$1 as SolanaWalletAdapter, cancelPaymentCode, cancelSolanaPaymentCode, createPayRequest, createPrivateKeySigner, generatePaymentCode, generatePaymentCodesBatch, generateSolanaPaymentCode, getPayRequest, getPaymentCode, getSolanaPaymentCode, payPayRequest, payPayRequestWithCode, payPayRequestWithSolana, redeemPaymentCode, redeemSolanaPaymentCode };
556
+ type CurrentPaymentCodeNetwork = PaymentCodeNetwork | 'solana' | 'solana-devnet';
557
+ interface EvmCurrentPaymentCodeSigner extends PaymentCodeSigner {
558
+ signMessage(message: string): Promise<string>;
559
+ sendTransaction?(tx: {
560
+ to: string;
561
+ data: string;
562
+ }): Promise<{
563
+ hash: string;
564
+ wait(): Promise<unknown>;
565
+ }>;
566
+ }
567
+ interface SolanaCurrentPaymentCodeWallet {
568
+ publicKey: {
569
+ toString(): string;
570
+ } | null;
571
+ signTransaction<T>(transaction: T): Promise<T>;
572
+ signMessage?(message: Uint8Array): Promise<Uint8Array>;
573
+ }
574
+ interface CreatePaymentCodeParamsBase {
575
+ amount: number | bigint;
576
+ ttlSeconds?: number;
577
+ description?: string;
578
+ claimLink?: boolean;
579
+ }
580
+ interface CreateEvmPaymentCodeParams extends CreatePaymentCodeParamsBase {
581
+ signer: PaymentCodeSigner;
582
+ network?: PaymentCodeNetwork;
583
+ payee?: string;
584
+ usdcContract?: string;
585
+ }
586
+ interface CreateSolanaPaymentCodeParams extends CreatePaymentCodeParamsBase {
587
+ network: 'solana' | 'solana-devnet';
588
+ wallet: SolanaCurrentPaymentCodeWallet;
589
+ }
590
+ type CreatePaymentCodeParams = CreateEvmPaymentCodeParams | CreateSolanaPaymentCodeParams;
591
+ interface CreatePaymentCodesBatchItem {
592
+ amount: number | bigint;
593
+ ttlSeconds?: number;
594
+ description?: string;
595
+ }
596
+ interface CreateEvmPaymentCodesBatchParams {
597
+ signer: PaymentCodeSigner;
598
+ network?: PaymentCodeNetwork;
599
+ payee?: string;
600
+ usdcContract?: string;
601
+ codes: CreatePaymentCodesBatchItem[];
602
+ }
603
+ interface CreateSolanaPaymentCodesBatchParams {
604
+ network: 'solana' | 'solana-devnet';
605
+ wallet: SolanaCurrentPaymentCodeWallet;
606
+ codes: CreatePaymentCodesBatchItem[];
607
+ }
608
+ type CreatePaymentCodesBatchParams = CreateEvmPaymentCodesBatchParams | CreateSolanaPaymentCodesBatchParams;
609
+ interface ListOwnerPaymentCodesParamsEvm {
610
+ walletType: 'evm';
611
+ wallet: EvmCurrentPaymentCodeSigner;
612
+ }
613
+ interface ListOwnerPaymentCodesParamsSolana {
614
+ walletType: 'solana';
615
+ wallet: SolanaCurrentPaymentCodeWallet & {
616
+ signMessage(message: Uint8Array): Promise<Uint8Array>;
617
+ };
618
+ }
619
+ type ListOwnerPaymentCodesParams = ListOwnerPaymentCodesParamsEvm | ListOwnerPaymentCodesParamsSolana;
620
+ interface RedeemStoredPaymentCodeParams {
621
+ payee: string;
622
+ evmNetwork?: PaymentCodeNetwork;
623
+ solanaNetwork?: 'solana' | 'solana-devnet';
624
+ }
625
+ interface CancelStoredPaymentCodeParams {
626
+ wallet?: EvmCurrentPaymentCodeSigner;
627
+ solanaWallet?: SolanaCurrentPaymentCodeWallet;
628
+ network?: CurrentPaymentCodeNetwork;
629
+ }
630
+ type ClaimPaymentLinkMode = 'claim-usdc' | 'claim-code';
631
+ interface ClaimPaymentLinkParamsBase {
632
+ mode?: ClaimPaymentLinkMode;
633
+ payee?: string;
634
+ evmNetwork?: PaymentCodeNetwork;
635
+ solanaNetwork?: 'solana' | 'solana-devnet';
636
+ }
637
+ interface ClaimPaymentLinkParamsEvm extends ClaimPaymentLinkParamsBase {
638
+ wallet: EvmCurrentPaymentCodeSigner;
639
+ solanaWallet?: never;
640
+ }
641
+ interface ClaimPaymentLinkParamsSolana extends ClaimPaymentLinkParamsBase {
642
+ wallet?: never;
643
+ solanaWallet: SolanaCurrentPaymentCodeWallet & {
644
+ signMessage(message: Uint8Array): Promise<Uint8Array>;
645
+ };
646
+ }
647
+ type ClaimPaymentLinkParams = ClaimPaymentLinkParamsEvm | ClaimPaymentLinkParamsSolana;
648
+ interface PayPayRequestWithStoredCodeOptions {
649
+ allowOverpayment?: boolean;
650
+ returnChange?: 'code' | 'wallet';
651
+ changeAddress?: string;
652
+ }
653
+ type CurrentPaymentCodeResponse = Record<string, unknown> | SolanaPaymentCode | SolanaClaimLink;
654
+ type OwnerPaymentCodesResponse = Record<string, unknown>;
655
+ type PaymentCodeDetailsResponse = Record<string, unknown>;
656
+ type RedeemStoredPaymentCodeResponse = Record<string, unknown>;
657
+ type CancelStoredPaymentCodeResponse = Record<string, unknown> | SolanaCodeCancelResult;
658
+ type ClaimPaymentLinkResponse = Record<string, unknown>;
659
+ type PayPayRequestWithStoredCodeResponse = Record<string, unknown>;
660
+ type PaymentCodesBatchResponse = Record<string, unknown> | SolanaPaymentCodeBatchResult;
661
+ declare function createPaymentCode(config: PaymentCodeConfig, params: CreatePaymentCodeParams): Promise<CurrentPaymentCodeResponse>;
662
+ declare function createPaymentCodesBatch(config: PaymentCodeConfig, params: CreatePaymentCodesBatchParams): Promise<PaymentCodesBatchResponse>;
663
+ declare function listOwnerPaymentCodes(config: PaymentCodeConfig, params: ListOwnerPaymentCodesParams): Promise<OwnerPaymentCodesResponse>;
664
+ declare function getPaymentCode(config: PaymentCodeConfig, code: string): Promise<PaymentCodeDetailsResponse>;
665
+ declare const getPaymentCodeDetails: typeof getPaymentCode;
666
+ declare function redeemStoredPaymentCode(config: PaymentCodeConfig, code: string, params: RedeemStoredPaymentCodeParams): Promise<RedeemStoredPaymentCodeResponse>;
667
+ declare function cancelStoredPaymentCode(config: PaymentCodeConfig, code: string, params?: CancelStoredPaymentCodeParams): Promise<CancelStoredPaymentCodeResponse>;
668
+ declare function claimPaymentLink(config: PaymentCodeConfig, claimUrlOrToken: string, params: ClaimPaymentLinkParams): Promise<ClaimPaymentLinkResponse>;
669
+ declare function payPayRequestWithStoredCode(config: PaymentRequestConfig, requestCode: string, paymentCode: string, options?: PayPayRequestWithStoredCodeOptions): Promise<PayPayRequestWithStoredCodeResponse>;
670
+
671
+ export { type BatchCodeItem, type BatchPaymentCodesResult, type CancelStoredPaymentCodeParams, type CancelStoredPaymentCodeResponse, type ClaimPaymentLinkMode, type ClaimPaymentLinkParams, type ClaimPaymentLinkResponse, type CodeStatus, type CreatePayRequestParams, type CreatePaymentCodeParams, type CreatePaymentCodesBatchItem, type CreatePaymentCodesBatchParams, type CurrentPaymentCodeNetwork, type CurrentPaymentCodeResponse, type EvmCurrentPaymentCodeSigner, type GeneratePaymentCodeParams, type GeneratePaymentCodesBatchParams, type GenerateSolanaPaymentCodeParams, type ListOwnerPaymentCodesParams, NETWORK_CONFIGS, type NetworkConfig, type OwnerPaymentCodesResponse, type PayPayRequestWithCodeOptions, type PayPayRequestWithStoredCodeOptions, type PayPayRequestWithStoredCodeResponse, type PayRequest, type PayRequestInfo, type PayRequestResult, type PaymentCode, type PaymentCodeConfig, type PaymentCodeDetailsResponse, type PaymentCodeNetwork, type PaymentCodeSigner, type PaymentCodesBatchResponse, type PaymentRequestConfig, type PaymentRequestNetwork, type RedeemResult, type RedeemStoredPaymentCodeParams, type RedeemStoredPaymentCodeResponse, type SolanaClaimLink, type SolanaCodeCancelResult, type SolanaCodeConfig, type SolanaCodeRedeemResult, type SolanaCodeStatus, type SolanaCurrentPaymentCodeWallet, type SolanaPayRequestOptions, type SolanaPayRequestResult, type SolanaPaymentCode, type SolanaWalletAdapter$1 as SolanaWalletAdapter, cancelPaymentCode, cancelSolanaPaymentCode, cancelStoredPaymentCode, claimPaymentLink, createPayRequest, createPaymentCode, createPaymentCodesBatch, createPrivateKeySigner, generatePaymentCode, generatePaymentCodesBatch, generateSolanaPaymentCode, getPayRequest, getPaymentCode$1 as getPaymentCode, getPaymentCodeDetails, getSolanaPaymentCode, listOwnerPaymentCodes, payPayRequest, payPayRequestWithCode, payPayRequestWithSolana, payPayRequestWithStoredCode, redeemPaymentCode, redeemSolanaPaymentCode, redeemStoredPaymentCode };