mavunta 1.0.0

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.
@@ -0,0 +1,282 @@
1
+ import { A as AuthVerifyResult, C as CreatePaymentIntentParams, R as RequestOptions, P as PaymentIntent, L as ListResponse, a as CreatePaymentLinkParams, b as PaymentLink, c as CreateCustomerParams, d as Customer, e as Refund, B as Balance, S as Settlement, f as CreateWebhookEndpointParams, W as WebhookEndpoint, g as WebhookEvent, h as WebhooksResource, M as MavuntaOptions } from './index-C_GLtIgI.cjs';
2
+ export { i as MavuntaEnvironment, j as PaymentMethod, k as SettlementCurrency, V as VerifyWebhookParams, v as verifyWebhook } from './index-C_GLtIgI.cjs';
3
+
4
+ declare class AuthResource {
5
+ private readonly client;
6
+ constructor(client: Mavunta);
7
+ /** Verify the current API key and return its merchant, scopes, and mode. */
8
+ verify(): Promise<AuthVerifyResult>;
9
+ }
10
+
11
+ declare class RatesResource {
12
+ private readonly client;
13
+ constructor(client: Mavunta);
14
+ /** Current indicative FX and crypto rates used for quotes. */
15
+ retrieve(): Promise<Record<string, unknown>>;
16
+ /** Alias for {@link retrieve}. */
17
+ list(): Promise<Record<string, unknown>>;
18
+ }
19
+
20
+ interface CreateQuoteParams {
21
+ source_currency: string;
22
+ target_asset: string;
23
+ amount: string;
24
+ side?: 'customer_pays' | 'merchant_receives';
25
+ }
26
+ declare class QuotesResource {
27
+ private readonly client;
28
+ constructor(client: Mavunta);
29
+ /** Create a short-lived quote locking a rate for a conversion. */
30
+ create(params: CreateQuoteParams): Promise<Record<string, unknown>>;
31
+ }
32
+
33
+ interface ListPaymentIntentsParams {
34
+ limit?: number;
35
+ starting_after?: string;
36
+ status?: string;
37
+ }
38
+ declare class PaymentIntentsResource {
39
+ private readonly client;
40
+ constructor(client: Mavunta);
41
+ /** Create a payment intent and get a `checkout_url` to send the customer to. */
42
+ create(params: CreatePaymentIntentParams, options?: RequestOptions): Promise<PaymentIntent>;
43
+ retrieve(id: string): Promise<PaymentIntent>;
44
+ list(params?: ListPaymentIntentsParams): Promise<ListResponse<PaymentIntent>>;
45
+ /** Cancel an intent that has not been paid yet. */
46
+ cancel(id: string): Promise<PaymentIntent>;
47
+ }
48
+
49
+ declare class PaymentLinksResource {
50
+ private readonly client;
51
+ constructor(client: Mavunta);
52
+ /** Create a reusable payment link (with a hosted page + QR). */
53
+ create(params: CreatePaymentLinkParams, options?: RequestOptions): Promise<PaymentLink>;
54
+ retrieve(id: string): Promise<PaymentLink>;
55
+ }
56
+
57
+ interface ListCustomersParams {
58
+ limit?: number;
59
+ starting_after?: string;
60
+ email?: string;
61
+ }
62
+ declare class CustomersResource {
63
+ private readonly client;
64
+ constructor(client: Mavunta);
65
+ create(params: CreateCustomerParams, options?: RequestOptions): Promise<Customer>;
66
+ retrieve(id: string): Promise<Customer>;
67
+ list(params?: ListCustomersParams): Promise<ListResponse<Customer>>;
68
+ }
69
+
70
+ interface CreateRefundParams {
71
+ payment_intent: string;
72
+ reason?: string;
73
+ }
74
+ declare class RefundsResource {
75
+ private readonly client;
76
+ constructor(client: Mavunta);
77
+ /**
78
+ * Refund a paid payment in full. Partial refunds are not supported, and a
79
+ * payment can have at most one refund (a repeat after success rejects with
80
+ * `already_refunded`).
81
+ */
82
+ create(params: CreateRefundParams, options?: RequestOptions): Promise<Refund>;
83
+ retrieve(id: string): Promise<Refund>;
84
+ list(params?: {
85
+ limit?: number;
86
+ starting_after?: string;
87
+ }): Promise<ListResponse<Refund>>;
88
+ }
89
+
90
+ declare class BalancesResource {
91
+ private readonly client;
92
+ constructor(client: Mavunta);
93
+ /** Retrieve the merchant's available and pending balances by asset. */
94
+ retrieve(): Promise<Balance>;
95
+ }
96
+
97
+ interface ListSettlementsParams {
98
+ limit?: number;
99
+ starting_after?: string;
100
+ status?: string;
101
+ }
102
+ declare class SettlementsResource {
103
+ private readonly client;
104
+ constructor(client: Mavunta);
105
+ list(params?: ListSettlementsParams): Promise<ListResponse<Settlement>>;
106
+ }
107
+
108
+ interface ReportParams {
109
+ /** ISO date or unix-seconds range bound, per the API docs. */
110
+ from?: string;
111
+ to?: string;
112
+ limit?: number;
113
+ starting_after?: string;
114
+ }
115
+ declare class ReportsResource {
116
+ private readonly client;
117
+ constructor(client: Mavunta);
118
+ /** Tabular payments report for reconciliation. */
119
+ payments(params?: ReportParams): Promise<Record<string, unknown>>;
120
+ /** Tabular settlements report for reconciliation. */
121
+ settlements(params?: ReportParams): Promise<Record<string, unknown>>;
122
+ }
123
+
124
+ declare class WebhookEndpointsResource {
125
+ private readonly client;
126
+ constructor(client: Mavunta);
127
+ create(params: CreateWebhookEndpointParams, options?: RequestOptions): Promise<WebhookEndpoint>;
128
+ retrieve(id: string): Promise<WebhookEndpoint>;
129
+ list(params?: {
130
+ limit?: number;
131
+ starting_after?: string;
132
+ }): Promise<ListResponse<WebhookEndpoint>>;
133
+ delete(id: string): Promise<{
134
+ id: string;
135
+ object: string;
136
+ deleted: boolean;
137
+ }>;
138
+ }
139
+
140
+ interface ListWebhookEventsParams {
141
+ limit?: number;
142
+ starting_after?: string;
143
+ type?: string;
144
+ }
145
+ declare class WebhookEventsResource {
146
+ private readonly client;
147
+ constructor(client: Mavunta);
148
+ list(params?: ListWebhookEventsParams): Promise<ListResponse<WebhookEvent>>;
149
+ retrieve(id: string): Promise<WebhookEvent>;
150
+ /** Re-deliver an event to all subscribed endpoints. */
151
+ resend(id: string): Promise<WebhookEvent>;
152
+ }
153
+
154
+ interface TriggerWebhookParams {
155
+ /** The event type to simulate, e.g. `payment_intent.paid`. */
156
+ type: string;
157
+ /** Optional override data merged into the simulated event. */
158
+ data?: Record<string, unknown>;
159
+ }
160
+ /**
161
+ * Sandbox-only test helpers. These work with a `cwk_test_…` key; calling them
162
+ * with a live key returns an error from the API.
163
+ */
164
+ declare class SandboxResource {
165
+ private readonly client;
166
+ constructor(client: Mavunta);
167
+ /** Fire a simulated webhook event to your configured endpoints. */
168
+ triggerWebhook(params: TriggerWebhookParams): Promise<WebhookEvent>;
169
+ }
170
+
171
+ type HttpMethod = 'GET' | 'POST' | 'DELETE';
172
+ interface InternalRequestOptions {
173
+ body?: unknown;
174
+ query?: Record<string, string | number | boolean | undefined>;
175
+ idempotencyKey?: string;
176
+ }
177
+ /**
178
+ * The Mavunta API client. Server-side only: it authenticates with a secret or
179
+ * restricted key and must never run in a browser.
180
+ *
181
+ * ```ts
182
+ * import Mavunta from 'mavunta'
183
+ * const mavunta = new Mavunta({ secretKey: process.env.MAVUNTA_SECRET_KEY! })
184
+ * const intent = await mavunta.paymentIntents.create({
185
+ * amount: '2500', currency: 'KES', settlement_currency: 'USDT',
186
+ * payment_methods: ['mpesa', 'card'],
187
+ * })
188
+ * ```
189
+ */
190
+ declare class Mavunta {
191
+ readonly auth: AuthResource;
192
+ readonly rates: RatesResource;
193
+ readonly quotes: QuotesResource;
194
+ readonly paymentIntents: PaymentIntentsResource;
195
+ readonly paymentLinks: PaymentLinksResource;
196
+ readonly customers: CustomersResource;
197
+ readonly refunds: RefundsResource;
198
+ readonly balances: BalancesResource;
199
+ readonly settlements: SettlementsResource;
200
+ readonly reports: ReportsResource;
201
+ readonly webhookEndpoints: WebhookEndpointsResource;
202
+ readonly webhookEvents: WebhookEventsResource;
203
+ readonly sandbox: SandboxResource;
204
+ /** Webhook signature verification (no network call). */
205
+ readonly webhooks: WebhooksResource;
206
+ private readonly secretKey;
207
+ private readonly baseUrl;
208
+ private readonly timeoutMs;
209
+ private readonly maxRetries;
210
+ constructor(options: MavuntaOptions);
211
+ /** @internal Used by resource classes; not part of the public surface. */
212
+ request<T>(method: HttpMethod, path: string, opts?: InternalRequestOptions): Promise<T>;
213
+ }
214
+
215
+ /**
216
+ * Error hierarchy for the Mavunta SDK.
217
+ *
218
+ * Every failure surfaces as a {@link MavuntaError} subclass so callers can
219
+ * branch on the type and read `code` / `requestId` for support. The shape
220
+ * mirrors the API's error envelope (spec §24):
221
+ *
222
+ * { error: { type, code, message, param, request_id, docs_url } }
223
+ */
224
+ interface MavuntaErrorBody {
225
+ type?: string;
226
+ code?: string;
227
+ message?: string;
228
+ param?: string | null;
229
+ request_id?: string;
230
+ docs_url?: string;
231
+ }
232
+ interface MavuntaErrorInit {
233
+ type?: string;
234
+ code?: string;
235
+ param?: string | null;
236
+ requestId?: string | null;
237
+ statusCode?: number | null;
238
+ docsUrl?: string | null;
239
+ }
240
+ /** Base class for everything thrown by the SDK. */
241
+ declare class MavuntaError extends Error {
242
+ readonly type: string;
243
+ readonly code: string;
244
+ readonly param: string | null;
245
+ readonly requestId: string | null;
246
+ readonly statusCode: number | null;
247
+ readonly docsUrl: string | null;
248
+ constructor(message: string, init?: MavuntaErrorInit);
249
+ }
250
+ /** A non-2xx response that does not map to a more specific class. */
251
+ declare class MavuntaAPIError extends MavuntaError {
252
+ }
253
+ /** 401: missing, invalid, or revoked API key. */
254
+ declare class MavuntaAuthenticationError extends MavuntaError {
255
+ }
256
+ /** 403: the key is valid but lacks the scope for this action. */
257
+ declare class MavuntaPermissionError extends MavuntaError {
258
+ }
259
+ /** 400 / 422: the request was malformed or failed validation. */
260
+ declare class MavuntaValidationError extends MavuntaError {
261
+ }
262
+ /** 409 on a money-moving create with a reused idempotency key. */
263
+ declare class MavuntaIdempotencyError extends MavuntaError {
264
+ }
265
+ /** A network failure before a response was received. */
266
+ declare class MavuntaConnectionError extends MavuntaError {
267
+ }
268
+ /** The request exceeded the configured timeout. */
269
+ declare class MavuntaTimeoutError extends MavuntaError {
270
+ }
271
+ /** Webhook signature verification failed. */
272
+ declare class MavuntaWebhookSignatureError extends MavuntaError {
273
+ }
274
+ /** 429: too many requests. `retryAfterMs` is parsed from `retry-after`. */
275
+ declare class MavuntaRateLimitError extends MavuntaError {
276
+ readonly retryAfterMs: number | null;
277
+ constructor(message: string, init?: MavuntaErrorInit & {
278
+ retryAfterMs?: number | null;
279
+ });
280
+ }
281
+
282
+ export { AuthVerifyResult, Balance, CreateCustomerParams, CreatePaymentIntentParams, CreatePaymentLinkParams, type CreateQuoteParams, type CreateRefundParams, CreateWebhookEndpointParams, Customer, type ListCustomersParams, type ListPaymentIntentsParams, ListResponse, type ListSettlementsParams, type ListWebhookEventsParams, Mavunta, MavuntaAPIError, MavuntaAuthenticationError, MavuntaConnectionError, MavuntaError, type MavuntaErrorBody, MavuntaIdempotencyError, MavuntaOptions, MavuntaPermissionError, MavuntaRateLimitError, MavuntaTimeoutError, MavuntaValidationError, MavuntaWebhookSignatureError, PaymentIntent, PaymentLink, Refund, type ReportParams, RequestOptions, Settlement, type TriggerWebhookParams, WebhookEndpoint, WebhookEvent, WebhooksResource, Mavunta as default };
@@ -0,0 +1,282 @@
1
+ import { A as AuthVerifyResult, C as CreatePaymentIntentParams, R as RequestOptions, P as PaymentIntent, L as ListResponse, a as CreatePaymentLinkParams, b as PaymentLink, c as CreateCustomerParams, d as Customer, e as Refund, B as Balance, S as Settlement, f as CreateWebhookEndpointParams, W as WebhookEndpoint, g as WebhookEvent, h as WebhooksResource, M as MavuntaOptions } from './index-C_GLtIgI.js';
2
+ export { i as MavuntaEnvironment, j as PaymentMethod, k as SettlementCurrency, V as VerifyWebhookParams, v as verifyWebhook } from './index-C_GLtIgI.js';
3
+
4
+ declare class AuthResource {
5
+ private readonly client;
6
+ constructor(client: Mavunta);
7
+ /** Verify the current API key and return its merchant, scopes, and mode. */
8
+ verify(): Promise<AuthVerifyResult>;
9
+ }
10
+
11
+ declare class RatesResource {
12
+ private readonly client;
13
+ constructor(client: Mavunta);
14
+ /** Current indicative FX and crypto rates used for quotes. */
15
+ retrieve(): Promise<Record<string, unknown>>;
16
+ /** Alias for {@link retrieve}. */
17
+ list(): Promise<Record<string, unknown>>;
18
+ }
19
+
20
+ interface CreateQuoteParams {
21
+ source_currency: string;
22
+ target_asset: string;
23
+ amount: string;
24
+ side?: 'customer_pays' | 'merchant_receives';
25
+ }
26
+ declare class QuotesResource {
27
+ private readonly client;
28
+ constructor(client: Mavunta);
29
+ /** Create a short-lived quote locking a rate for a conversion. */
30
+ create(params: CreateQuoteParams): Promise<Record<string, unknown>>;
31
+ }
32
+
33
+ interface ListPaymentIntentsParams {
34
+ limit?: number;
35
+ starting_after?: string;
36
+ status?: string;
37
+ }
38
+ declare class PaymentIntentsResource {
39
+ private readonly client;
40
+ constructor(client: Mavunta);
41
+ /** Create a payment intent and get a `checkout_url` to send the customer to. */
42
+ create(params: CreatePaymentIntentParams, options?: RequestOptions): Promise<PaymentIntent>;
43
+ retrieve(id: string): Promise<PaymentIntent>;
44
+ list(params?: ListPaymentIntentsParams): Promise<ListResponse<PaymentIntent>>;
45
+ /** Cancel an intent that has not been paid yet. */
46
+ cancel(id: string): Promise<PaymentIntent>;
47
+ }
48
+
49
+ declare class PaymentLinksResource {
50
+ private readonly client;
51
+ constructor(client: Mavunta);
52
+ /** Create a reusable payment link (with a hosted page + QR). */
53
+ create(params: CreatePaymentLinkParams, options?: RequestOptions): Promise<PaymentLink>;
54
+ retrieve(id: string): Promise<PaymentLink>;
55
+ }
56
+
57
+ interface ListCustomersParams {
58
+ limit?: number;
59
+ starting_after?: string;
60
+ email?: string;
61
+ }
62
+ declare class CustomersResource {
63
+ private readonly client;
64
+ constructor(client: Mavunta);
65
+ create(params: CreateCustomerParams, options?: RequestOptions): Promise<Customer>;
66
+ retrieve(id: string): Promise<Customer>;
67
+ list(params?: ListCustomersParams): Promise<ListResponse<Customer>>;
68
+ }
69
+
70
+ interface CreateRefundParams {
71
+ payment_intent: string;
72
+ reason?: string;
73
+ }
74
+ declare class RefundsResource {
75
+ private readonly client;
76
+ constructor(client: Mavunta);
77
+ /**
78
+ * Refund a paid payment in full. Partial refunds are not supported, and a
79
+ * payment can have at most one refund (a repeat after success rejects with
80
+ * `already_refunded`).
81
+ */
82
+ create(params: CreateRefundParams, options?: RequestOptions): Promise<Refund>;
83
+ retrieve(id: string): Promise<Refund>;
84
+ list(params?: {
85
+ limit?: number;
86
+ starting_after?: string;
87
+ }): Promise<ListResponse<Refund>>;
88
+ }
89
+
90
+ declare class BalancesResource {
91
+ private readonly client;
92
+ constructor(client: Mavunta);
93
+ /** Retrieve the merchant's available and pending balances by asset. */
94
+ retrieve(): Promise<Balance>;
95
+ }
96
+
97
+ interface ListSettlementsParams {
98
+ limit?: number;
99
+ starting_after?: string;
100
+ status?: string;
101
+ }
102
+ declare class SettlementsResource {
103
+ private readonly client;
104
+ constructor(client: Mavunta);
105
+ list(params?: ListSettlementsParams): Promise<ListResponse<Settlement>>;
106
+ }
107
+
108
+ interface ReportParams {
109
+ /** ISO date or unix-seconds range bound, per the API docs. */
110
+ from?: string;
111
+ to?: string;
112
+ limit?: number;
113
+ starting_after?: string;
114
+ }
115
+ declare class ReportsResource {
116
+ private readonly client;
117
+ constructor(client: Mavunta);
118
+ /** Tabular payments report for reconciliation. */
119
+ payments(params?: ReportParams): Promise<Record<string, unknown>>;
120
+ /** Tabular settlements report for reconciliation. */
121
+ settlements(params?: ReportParams): Promise<Record<string, unknown>>;
122
+ }
123
+
124
+ declare class WebhookEndpointsResource {
125
+ private readonly client;
126
+ constructor(client: Mavunta);
127
+ create(params: CreateWebhookEndpointParams, options?: RequestOptions): Promise<WebhookEndpoint>;
128
+ retrieve(id: string): Promise<WebhookEndpoint>;
129
+ list(params?: {
130
+ limit?: number;
131
+ starting_after?: string;
132
+ }): Promise<ListResponse<WebhookEndpoint>>;
133
+ delete(id: string): Promise<{
134
+ id: string;
135
+ object: string;
136
+ deleted: boolean;
137
+ }>;
138
+ }
139
+
140
+ interface ListWebhookEventsParams {
141
+ limit?: number;
142
+ starting_after?: string;
143
+ type?: string;
144
+ }
145
+ declare class WebhookEventsResource {
146
+ private readonly client;
147
+ constructor(client: Mavunta);
148
+ list(params?: ListWebhookEventsParams): Promise<ListResponse<WebhookEvent>>;
149
+ retrieve(id: string): Promise<WebhookEvent>;
150
+ /** Re-deliver an event to all subscribed endpoints. */
151
+ resend(id: string): Promise<WebhookEvent>;
152
+ }
153
+
154
+ interface TriggerWebhookParams {
155
+ /** The event type to simulate, e.g. `payment_intent.paid`. */
156
+ type: string;
157
+ /** Optional override data merged into the simulated event. */
158
+ data?: Record<string, unknown>;
159
+ }
160
+ /**
161
+ * Sandbox-only test helpers. These work with a `cwk_test_…` key; calling them
162
+ * with a live key returns an error from the API.
163
+ */
164
+ declare class SandboxResource {
165
+ private readonly client;
166
+ constructor(client: Mavunta);
167
+ /** Fire a simulated webhook event to your configured endpoints. */
168
+ triggerWebhook(params: TriggerWebhookParams): Promise<WebhookEvent>;
169
+ }
170
+
171
+ type HttpMethod = 'GET' | 'POST' | 'DELETE';
172
+ interface InternalRequestOptions {
173
+ body?: unknown;
174
+ query?: Record<string, string | number | boolean | undefined>;
175
+ idempotencyKey?: string;
176
+ }
177
+ /**
178
+ * The Mavunta API client. Server-side only: it authenticates with a secret or
179
+ * restricted key and must never run in a browser.
180
+ *
181
+ * ```ts
182
+ * import Mavunta from 'mavunta'
183
+ * const mavunta = new Mavunta({ secretKey: process.env.MAVUNTA_SECRET_KEY! })
184
+ * const intent = await mavunta.paymentIntents.create({
185
+ * amount: '2500', currency: 'KES', settlement_currency: 'USDT',
186
+ * payment_methods: ['mpesa', 'card'],
187
+ * })
188
+ * ```
189
+ */
190
+ declare class Mavunta {
191
+ readonly auth: AuthResource;
192
+ readonly rates: RatesResource;
193
+ readonly quotes: QuotesResource;
194
+ readonly paymentIntents: PaymentIntentsResource;
195
+ readonly paymentLinks: PaymentLinksResource;
196
+ readonly customers: CustomersResource;
197
+ readonly refunds: RefundsResource;
198
+ readonly balances: BalancesResource;
199
+ readonly settlements: SettlementsResource;
200
+ readonly reports: ReportsResource;
201
+ readonly webhookEndpoints: WebhookEndpointsResource;
202
+ readonly webhookEvents: WebhookEventsResource;
203
+ readonly sandbox: SandboxResource;
204
+ /** Webhook signature verification (no network call). */
205
+ readonly webhooks: WebhooksResource;
206
+ private readonly secretKey;
207
+ private readonly baseUrl;
208
+ private readonly timeoutMs;
209
+ private readonly maxRetries;
210
+ constructor(options: MavuntaOptions);
211
+ /** @internal Used by resource classes; not part of the public surface. */
212
+ request<T>(method: HttpMethod, path: string, opts?: InternalRequestOptions): Promise<T>;
213
+ }
214
+
215
+ /**
216
+ * Error hierarchy for the Mavunta SDK.
217
+ *
218
+ * Every failure surfaces as a {@link MavuntaError} subclass so callers can
219
+ * branch on the type and read `code` / `requestId` for support. The shape
220
+ * mirrors the API's error envelope (spec §24):
221
+ *
222
+ * { error: { type, code, message, param, request_id, docs_url } }
223
+ */
224
+ interface MavuntaErrorBody {
225
+ type?: string;
226
+ code?: string;
227
+ message?: string;
228
+ param?: string | null;
229
+ request_id?: string;
230
+ docs_url?: string;
231
+ }
232
+ interface MavuntaErrorInit {
233
+ type?: string;
234
+ code?: string;
235
+ param?: string | null;
236
+ requestId?: string | null;
237
+ statusCode?: number | null;
238
+ docsUrl?: string | null;
239
+ }
240
+ /** Base class for everything thrown by the SDK. */
241
+ declare class MavuntaError extends Error {
242
+ readonly type: string;
243
+ readonly code: string;
244
+ readonly param: string | null;
245
+ readonly requestId: string | null;
246
+ readonly statusCode: number | null;
247
+ readonly docsUrl: string | null;
248
+ constructor(message: string, init?: MavuntaErrorInit);
249
+ }
250
+ /** A non-2xx response that does not map to a more specific class. */
251
+ declare class MavuntaAPIError extends MavuntaError {
252
+ }
253
+ /** 401: missing, invalid, or revoked API key. */
254
+ declare class MavuntaAuthenticationError extends MavuntaError {
255
+ }
256
+ /** 403: the key is valid but lacks the scope for this action. */
257
+ declare class MavuntaPermissionError extends MavuntaError {
258
+ }
259
+ /** 400 / 422: the request was malformed or failed validation. */
260
+ declare class MavuntaValidationError extends MavuntaError {
261
+ }
262
+ /** 409 on a money-moving create with a reused idempotency key. */
263
+ declare class MavuntaIdempotencyError extends MavuntaError {
264
+ }
265
+ /** A network failure before a response was received. */
266
+ declare class MavuntaConnectionError extends MavuntaError {
267
+ }
268
+ /** The request exceeded the configured timeout. */
269
+ declare class MavuntaTimeoutError extends MavuntaError {
270
+ }
271
+ /** Webhook signature verification failed. */
272
+ declare class MavuntaWebhookSignatureError extends MavuntaError {
273
+ }
274
+ /** 429: too many requests. `retryAfterMs` is parsed from `retry-after`. */
275
+ declare class MavuntaRateLimitError extends MavuntaError {
276
+ readonly retryAfterMs: number | null;
277
+ constructor(message: string, init?: MavuntaErrorInit & {
278
+ retryAfterMs?: number | null;
279
+ });
280
+ }
281
+
282
+ export { AuthVerifyResult, Balance, CreateCustomerParams, CreatePaymentIntentParams, CreatePaymentLinkParams, type CreateQuoteParams, type CreateRefundParams, CreateWebhookEndpointParams, Customer, type ListCustomersParams, type ListPaymentIntentsParams, ListResponse, type ListSettlementsParams, type ListWebhookEventsParams, Mavunta, MavuntaAPIError, MavuntaAuthenticationError, MavuntaConnectionError, MavuntaError, type MavuntaErrorBody, MavuntaIdempotencyError, MavuntaOptions, MavuntaPermissionError, MavuntaRateLimitError, MavuntaTimeoutError, MavuntaValidationError, MavuntaWebhookSignatureError, PaymentIntent, PaymentLink, Refund, type ReportParams, RequestOptions, Settlement, type TriggerWebhookParams, WebhookEndpoint, WebhookEvent, WebhooksResource, Mavunta as default };