@anker-in/campaign-ui 0.2.10-beta.26 → 0.2.10-beta.27

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.
Files changed (108) hide show
  1. package/dist/cjs/components/credits/context/hooks/useSubscribed.js +1 -1
  2. package/dist/cjs/components/credits/context/hooks/useSubscribed.js.map +3 -3
  3. package/dist/cjs/components/credits/context/hooks/useSubscriptions.d.ts +7 -3
  4. package/dist/cjs/components/credits/context/hooks/useSubscriptions.js +1 -1
  5. package/dist/cjs/components/credits/context/hooks/useSubscriptions.js.map +3 -3
  6. package/dist/cjs/components/credits/creditsWaysToGetCredits/useActions.js +1 -1
  7. package/dist/cjs/components/credits/creditsWaysToGetCredits/useActions.js.map +2 -2
  8. package/dist/cjs/index.d.ts +0 -1
  9. package/dist/cjs/index.js +1 -1
  10. package/dist/cjs/index.js.map +2 -2
  11. package/dist/esm/components/credits/context/hooks/useSubscribed.js +1 -1
  12. package/dist/esm/components/credits/context/hooks/useSubscribed.js.map +3 -3
  13. package/dist/esm/components/credits/context/hooks/useSubscriptions.d.ts +7 -3
  14. package/dist/esm/components/credits/context/hooks/useSubscriptions.js +1 -1
  15. package/dist/esm/components/credits/context/hooks/useSubscriptions.js.map +3 -3
  16. package/dist/esm/components/credits/creditsWaysToGetCredits/useActions.js +1 -1
  17. package/dist/esm/components/credits/creditsWaysToGetCredits/useActions.js.map +2 -2
  18. package/dist/esm/index.d.ts +0 -1
  19. package/dist/esm/index.js +1 -1
  20. package/dist/esm/index.js.map +2 -2
  21. package/dist/index.d.mts +0 -1
  22. package/dist/index.d.ts +493 -2
  23. package/dist/index.js +4291 -1249
  24. package/dist/index.js.map +1 -1
  25. package/dist/index.mjs +4158 -1137
  26. package/dist/index.mjs.map +1 -1
  27. package/package.json +2 -2
  28. package/src/components/credits/context/hooks/useSubscribed.ts +5 -5
  29. package/src/components/credits/context/hooks/useSubscriptions.ts +12 -37
  30. package/src/components/credits/creditsWaysToGetCredits/useActions.ts +0 -1
  31. package/src/index.ts +0 -3
  32. package/dist/components/chat/action.d.ts +0 -25
  33. package/dist/components/chat/button.d.ts +0 -3
  34. package/dist/components/chat/chatContext.d.ts +0 -101
  35. package/dist/components/chat/index.d.ts +0 -71
  36. package/dist/components/chat/markdown.d.ts +0 -5
  37. package/dist/components/chat/messages.d.ts +0 -3
  38. package/dist/components/chat/props.d.ts +0 -43
  39. package/dist/components/chat/response.d.ts +0 -4
  40. package/dist/components/chat/suggestions.d.ts +0 -3
  41. package/dist/components/chat/utils.d.ts +0 -3
  42. package/dist/components/credits/context/const.d.ts +0 -81
  43. package/dist/components/credits/context/hooks/useActivities.d.ts +0 -12
  44. package/dist/components/credits/context/hooks/useAddressValidate.d.ts +0 -34
  45. package/dist/components/credits/context/hooks/useAlpcFetch.d.ts +0 -23
  46. package/dist/components/credits/context/hooks/useClickOutside.d.ts +0 -3
  47. package/dist/components/credits/context/hooks/useCopy.d.ts +0 -5
  48. package/dist/components/credits/context/hooks/useCountries.d.ts +0 -8
  49. package/dist/components/credits/context/hooks/useFirstPurchaseFinished.d.ts +0 -1
  50. package/dist/components/credits/context/hooks/useMyRewards.d.ts +0 -14
  51. package/dist/components/credits/context/hooks/useReceiptUploaded.d.ts +0 -2
  52. package/dist/components/credits/context/hooks/useRedeemAndBuy.d.ts +0 -9
  53. package/dist/components/credits/context/hooks/useRedeemCoupon.d.ts +0 -17
  54. package/dist/components/credits/context/hooks/useRedeemProduct.d.ts +0 -16
  55. package/dist/components/credits/context/hooks/useRedeemableList.d.ts +0 -7
  56. package/dist/components/credits/context/hooks/useSendEmailValidation.d.ts +0 -1
  57. package/dist/components/credits/context/hooks/useSubscribed.d.ts +0 -1
  58. package/dist/components/credits/context/hooks/useSubscriptions.d.ts +0 -5
  59. package/dist/components/credits/context/hooks/useUploadReceipt.d.ts +0 -14
  60. package/dist/components/credits/context/provider.d.ts +0 -49
  61. package/dist/components/credits/context/response.d.ts +0 -63
  62. package/dist/components/credits/context/utils.d.ts +0 -25
  63. package/dist/components/credits/creditsBanner/index.d.ts +0 -23
  64. package/dist/components/credits/creditsBenefits/benefitItem.d.ts +0 -19
  65. package/dist/components/credits/creditsBenefits/iconInfo.d.ts +0 -2
  66. package/dist/components/credits/creditsBenefits/index.d.ts +0 -12
  67. package/dist/components/credits/creditsCash/RedeemableItem.d.ts +0 -15
  68. package/dist/components/credits/creditsCash/index.d.ts +0 -13
  69. package/dist/components/credits/creditsCash/type.d.ts +0 -47
  70. package/dist/components/credits/creditsFaq/faqItem/FaqItem.d.ts +0 -13
  71. package/dist/components/credits/creditsFaq/index.d.ts +0 -16
  72. package/dist/components/credits/creditsInfoCard/index.d.ts +0 -20
  73. package/dist/components/credits/creditsRedeemList/AddressForm/CountrySelect.d.ts +0 -14
  74. package/dist/components/credits/creditsRedeemList/AddressForm/FormItem.d.ts +0 -6
  75. package/dist/components/credits/creditsRedeemList/AddressForm/Input.d.ts +0 -13
  76. package/dist/components/credits/creditsRedeemList/AddressForm/StateSelect.d.ts +0 -15
  77. package/dist/components/credits/creditsRedeemList/AddressForm/index.d.ts +0 -2
  78. package/dist/components/credits/creditsRedeemList/AddressForm/type.d.ts +0 -26
  79. package/dist/components/credits/creditsRedeemList/RedeemCouponModal.d.ts +0 -9
  80. package/dist/components/credits/creditsRedeemList/RedeemProductModal/Address.d.ts +0 -20
  81. package/dist/components/credits/creditsRedeemList/RedeemProductModal/Error.d.ts +0 -8
  82. package/dist/components/credits/creditsRedeemList/RedeemProductModal/Init.d.ts +0 -11
  83. package/dist/components/credits/creditsRedeemList/RedeemProductModal/ProductInfo.d.ts +0 -8
  84. package/dist/components/credits/creditsRedeemList/RedeemProductModal/Success.d.ts +0 -13
  85. package/dist/components/credits/creditsRedeemList/RedeemProductModal/index.d.ts +0 -11
  86. package/dist/components/credits/creditsRedeemList/RedeemableItem.d.ts +0 -9
  87. package/dist/components/credits/creditsRedeemList/index.d.ts +0 -13
  88. package/dist/components/credits/creditsRedeemList/type.d.ts +0 -77
  89. package/dist/components/credits/creditsWaysToGetCredits/index.d.ts +0 -2
  90. package/dist/components/credits/creditsWaysToGetCredits/type.d.ts +0 -60
  91. package/dist/components/credits/creditsWaysToGetCredits/useActions.d.ts +0 -96
  92. package/dist/components/credits/index.d.ts +0 -10
  93. package/dist/components/credits/modal/MyRewardsModal.d.ts +0 -32
  94. package/dist/components/credits/modal/activitiesModal.d.ts +0 -32
  95. package/dist/components/credits/modal/creditsUploadReceiptModal.d.ts +0 -24
  96. package/dist/components/credits/modal/loadingDots.d.ts +0 -6
  97. package/dist/components/credits/modal/modalContainer.d.ts +0 -15
  98. package/dist/components/credits/modal/rulesModal.d.ts +0 -7
  99. package/dist/components/credits/modal/tip.d.ts +0 -5
  100. package/dist/components/credits/type.d.ts +0 -55
  101. package/dist/components/index.d.ts +0 -3
  102. package/dist/debug-env.d.ts +0 -7
  103. package/dist/helpers/fetchResponse.d.ts +0 -14
  104. package/dist/helpers/fetcher.d.ts +0 -2
  105. package/dist/helpers/index.d.ts +0 -2
  106. package/dist/helpers/track.d.ts +0 -19
  107. package/dist/helpers/utils.d.ts +0 -3
  108. package/dist/stories/chat.stories.d.ts +0 -7
package/dist/index.d.ts CHANGED
@@ -1,2 +1,493 @@
1
- export * from './components/index';
2
- export * from '@anker-in/lib';
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React from 'react';
3
+ export { useCopilotAction, useCopilotChat, useCopilotReadable } from '@copilotkit/react-core';
4
+ export { ActionExecutionMessage, Role, TextMessage } from '@copilotkit/runtime-client-gql';
5
+ import * as swr_dist_mutation from 'swr/dist/mutation';
6
+
7
+ interface ChatProps {
8
+ title: string;
9
+ runtimeUrl: string;
10
+ shopifyDomain: string;
11
+ /** GA 的 client id
12
+ */
13
+ userId: string;
14
+ /** 是否登陆用户 0 or 1
15
+ */
16
+ account?: string;
17
+ /** 用户浏览器语言
18
+ */
19
+ locale?: string;
20
+ /** 开场白
21
+ */
22
+ prologue?: string;
23
+ /** ?a=1&b=2
24
+ */
25
+ query?: string;
26
+ /** 'follow' or 'unfollow' | true or false
27
+ * follow: ResponseButton 会跟随在 messages 的后边
28
+ * unfollow: ResponseButton 在聊天框底部
29
+ */
30
+ showResponseButton?: string | boolean;
31
+ /** messages 的回调事件
32
+ * 每次生成/接受新的messages,会将 整个 messages list 传递给外部
33
+ */
34
+ messagesCallback?: (_messages: any) => void;
35
+ /** 通用 action 的触发事件
36
+ */
37
+ commonRender?: string | ((_props: any) => React.ReactElement);
38
+ /** shulex的 action 的触发事件
39
+ */
40
+ shulexRender?: string | ((_props: any) => React.ReactElement);
41
+ /** 通用 积分 换 Coupon 的触发事件
42
+ */
43
+ pointsExchangeCouponRender?: string | ((_props: any) => React.ReactElement);
44
+ /** 跳转 checkout action 卡片,接受参数: {"status":"complete","args":[{"sku":["A3936031"],"handle":"space-a40-a3936031"}],"result":""}
45
+ * 后端接口文档:https://anker-in.feishu.cn/wiki/DOYJwE9oxipWmYk072ncnJNznBb
46
+ */
47
+ gotocheckoutRender?: string | ((_props: any) => React.ReactElement);
48
+ /** 打开购物车 action 卡片,接受参数: {"status":"complete","args":[{"sku":["A3936031"],"handle":"space-a40-a3936031"}],"result":""}
49
+ * 后端接口文档:https://anker-in.feishu.cn/wiki/DOYJwE9oxipWmYk072ncnJNznBb
50
+ */
51
+ gotocartRender?: string | ((_props: any) => React.ReactElement);
52
+ /** 打开购物车 action 的触发事件
53
+ */
54
+ addtocartHandler?: (_args: any) => Promise<any>;
55
+ /** 加购卡片,接受参数: {"status":"complete","args":[{"sku":["A3936031"],"handle":"space-a40-a3936031"}],"result":""}
56
+ * 后端接口文档:https://anker-in.feishu.cn/wiki/DOYJwE9oxipWmYk072ncnJNznBb
57
+ */
58
+ addtocartRender?: string | ((_props: any) => React.ReactElement);
59
+ /** 订阅卡片,接受参数: {"status":"complete","args":[{"sku":["A3936031"],"handle":"space-a40-a3936031"}],"result":""}
60
+ * 后端接口文档:https://anker-in.feishu.cn/wiki/DOYJwE9oxipWmYk072ncnJNznBb
61
+ */
62
+ signupRender?: string | ((_props: any) => React.ReactElement);
63
+ /** 产品卡片,接受参数: {"status":"complete","args":[{"sku":["A3936031"],"handle":"space-a40-a3936031"}],"result":""}
64
+ * 后端接口文档:https://anker-in.feishu.cn/wiki/DOYJwE9oxipWmYk072ncnJNznBb
65
+ */
66
+ productRender?: string | ((_props: any) => React.ReactElement);
67
+ /** CopilotPopup 自定义参数,参考:https://docs.copilotkit.ai/reference/components/CopilotPopup */
68
+ popup?: any;
69
+ /** 文案,{"productRenderTipMessage": "","popupTip": "Hi ! Welcome to soundcore Innovations live chat!", "popupTipTimeout": [3000, 6000]} */
70
+ lang?: any;
71
+ /** 参考此文档:https://docs.copilotkit.ai/concepts/customize-look-and-feel */
72
+ style?: any;
73
+ className?: string;
74
+ }
75
+ declare const Chat: (props: ChatProps) => react_jsx_runtime.JSX.Element;
76
+
77
+ declare enum ConsumeType {
78
+ Coupon = "coupon",
79
+ GiftCard = "giftCard",
80
+ GoGift = "goGift",
81
+ Product = "product"
82
+ }
83
+ declare enum DTC_TASK_TYPE {
84
+ FirstPurchase = "firstPurchase",
85
+ UploadReceipt = "uploadReceipt",
86
+ Shopping = "shopping"
87
+ }
88
+
89
+ interface BaseResponse {
90
+ brand: string;
91
+ }
92
+ interface CreditInfoResponse extends BaseResponse {
93
+ total_credit: number;
94
+ available_credit: number;
95
+ pending_credit: number;
96
+ expired_credit: number;
97
+ cancel_credit: number;
98
+ consumed_credit: number;
99
+ }
100
+
101
+ declare function CreditsProvider({ children, profile, removeProfile, isLoadingProfile, openSignInPopup, openSignUpPopup, taskIdToTypeMapping, creditInfo, customer, customerLoading, fetchCreditInfo, gtm, }: {
102
+ children: React.ReactNode;
103
+ profile: any;
104
+ removeProfile: () => void;
105
+ isLoadingProfile: boolean;
106
+ openSignInPopup: () => void;
107
+ openSignUpPopup: () => void;
108
+ taskIdToTypeMapping: Record<string, DTC_TASK_TYPE>;
109
+ creditInfo?: CreditInfoResponse;
110
+ customer: any;
111
+ fetchCreditInfo: (user_id: string) => void;
112
+ customerLoading: boolean;
113
+ gtm: {
114
+ pageGroup: string;
115
+ };
116
+ }): react_jsx_runtime.JSX.Element;
117
+ declare function useCreditsContext(): {
118
+ profile: any;
119
+ isLoadingProfile: boolean;
120
+ removeProfile: () => void;
121
+ taskIdToTypeMapping: Record<string, DTC_TASK_TYPE>;
122
+ openSignInPopup: () => void;
123
+ openSignUpPopup: () => void;
124
+ creditInfo?: CreditInfoResponse;
125
+ customer?: any;
126
+ customerLoading: boolean;
127
+ fetchCreditInfo: (user_id: string) => void;
128
+ gtm: {
129
+ pageGroup: string;
130
+ };
131
+ };
132
+
133
+ declare const useUploadReceipt: () => swr_dist_mutation.SWRMutationResponse<{
134
+ ok: boolean;
135
+ code: number;
136
+ }, any, "/api/multipass/mktsrv/v1/credit/upload_third_party_order", {
137
+ orderName: string;
138
+ }>;
139
+
140
+ type ReceiptCopy = {
141
+ title: string;
142
+ description: string;
143
+ placeholder: string;
144
+ note: string;
145
+ submit: string;
146
+ successTitle: string;
147
+ successDescription: string;
148
+ gotIt: string;
149
+ failedTitle: string;
150
+ successIcon: string;
151
+ failedIcon: string;
152
+ failedReasons: {
153
+ code: string;
154
+ id: string;
155
+ description: string;
156
+ }[];
157
+ };
158
+ declare function CreditsUploadReceiptModal({ isOpen, onClose, copy, onSuccess, }: {
159
+ isOpen: boolean;
160
+ onClose: () => void;
161
+ copy: ReceiptCopy;
162
+ onSuccess: () => void;
163
+ }): react_jsx_runtime.JSX.Element;
164
+
165
+ type Img = {
166
+ url: string;
167
+ alt: string;
168
+ };
169
+ type BannerProps = {
170
+ copy: {
171
+ pcImg: Img;
172
+ laptopImg: Img;
173
+ mobileImg: Img;
174
+ joinNow: string;
175
+ loginIn: string;
176
+ login: {
177
+ title: string;
178
+ description: string;
179
+ };
180
+ unLogin: {
181
+ title: string;
182
+ description: string;
183
+ };
184
+ };
185
+ };
186
+ declare function CreditsBanner({ copy }: BannerProps): react_jsx_runtime.JSX.Element;
187
+
188
+ interface BenefitItemCopy {
189
+ icon: {
190
+ alt: string;
191
+ url: string;
192
+ };
193
+ text: string;
194
+ note?: string;
195
+ tag?: string;
196
+ }
197
+
198
+ interface CreditsBenefitsProps {
199
+ copy: {
200
+ title: string;
201
+ benefits: BenefitItemCopy[];
202
+ };
203
+ }
204
+ declare const CreditsBenefits: ({ copy }: CreditsBenefitsProps) => react_jsx_runtime.JSX.Element;
205
+
206
+ interface MyRewardsMetafields {
207
+ title: string;
208
+ orderNumberLabel: string;
209
+ valueLabel: string;
210
+ receivedLabel: string;
211
+ failedLabel: string;
212
+ approveSuccessLabel: string;
213
+ couponTab: string;
214
+ productTab: string;
215
+ pendingLabel: string;
216
+ unfulfilledLabel: string;
217
+ fulfilledLabel: string;
218
+ confirmedTip: string;
219
+ pendingTip: string;
220
+ processingTip: string;
221
+ ShippedTip: string;
222
+ emptyListLabel: string;
223
+ pointUnit: string;
224
+ code: string;
225
+ copied: string;
226
+ copy: string;
227
+ emptyListImage: {
228
+ url: string;
229
+ alt?: string;
230
+ };
231
+ }
232
+
233
+ interface MyActivitiesMetafields {
234
+ title: string;
235
+ tips: string;
236
+ allTab: string;
237
+ earnedTab: string;
238
+ deductedTab: string;
239
+ expiredTab: string;
240
+ activationTask: string;
241
+ updateNameTask: string;
242
+ updatePhoneTask: string;
243
+ updateBirthdayTask: string;
244
+ updateAppNameTask: string;
245
+ subscriptionTask: string;
246
+ refundTask: string;
247
+ productUnApprovedTask: string;
248
+ pendingTips?: string;
249
+ pendingTips2?: string;
250
+ firstPurchaseTask: string;
251
+ uploadReceiptTask: string;
252
+ shoppingTask: string;
253
+ emptyListImage: {
254
+ url: string;
255
+ alt?: string;
256
+ };
257
+ emptyListLabel: string;
258
+ }
259
+
260
+ type ButtonConfig = {
261
+ text: string;
262
+ type: 'activities' | 'rewards';
263
+ };
264
+ interface InfoCardProps {
265
+ data: {
266
+ balanceLabel: string;
267
+ comingSoonLabel: string;
268
+ comingSoonTips: string;
269
+ buttons: ButtonConfig[];
270
+ pointUnit: string;
271
+ infoIcon: string;
272
+ myActivities: MyActivitiesMetafields;
273
+ myRewards: MyRewardsMetafields;
274
+ };
275
+ }
276
+ declare function CreditsInfoCard({ data }: InfoCardProps): react_jsx_runtime.JSX.Element;
277
+
278
+ type BenefitItem = {
279
+ title: string;
280
+ credits: string;
281
+ id: string;
282
+ };
283
+ type WaysToGetCreditsCopy = {
284
+ title: string;
285
+ subtitle: string;
286
+ equalCredits: string;
287
+ musicIcon: string;
288
+ list: BenefitItem[];
289
+ mainImage: {
290
+ url: string;
291
+ alt: string;
292
+ };
293
+ joinNow: string;
294
+ activate: string;
295
+ completed: string;
296
+ completeProfile: string;
297
+ makeFirstPurchase: string;
298
+ goShopLink: string;
299
+ uploadReceipt: string;
300
+ shopNow: string;
301
+ subscribe: string;
302
+ sendEmailSuccess: string;
303
+ creditsIcon: {
304
+ url: string;
305
+ alt: string;
306
+ };
307
+ receipt: ReceiptCopy;
308
+ };
309
+ type CreditsWaysToGetCreditsProps = {
310
+ copy: WaysToGetCreditsCopy;
311
+ classNames?: {
312
+ equalCreditsText?: string;
313
+ subtitle?: string;
314
+ };
315
+ activate: {
316
+ openAuthCodePopup: () => void;
317
+ isSuccess: boolean;
318
+ isSendingActivateEmail: boolean;
319
+ };
320
+ subscribe: {
321
+ openSubscribePopup: () => void;
322
+ isSuccess: boolean;
323
+ };
324
+ uploadReceipt: {
325
+ openUploadReceiptPopup: () => void;
326
+ isSuccess: boolean;
327
+ };
328
+ };
329
+
330
+ declare const CreditsWaysToGetCredits: ({ copy, activate, subscribe, uploadReceipt, classNames, }: CreditsWaysToGetCreditsProps) => react_jsx_runtime.JSX.Element;
331
+
332
+ type FaqCopy = {
333
+ title: string;
334
+ subTitle: string;
335
+ learnMore: {
336
+ link: string;
337
+ label: string;
338
+ };
339
+ items: {
340
+ category_name: string;
341
+ question: string;
342
+ answer: string;
343
+ }[];
344
+ };
345
+ declare const CreditsFaq: ({ copy }: {
346
+ copy: FaqCopy;
347
+ }) => react_jsx_runtime.JSX.Element;
348
+
349
+ type RedeemableItemConfig = {
350
+ title: string;
351
+ desc: string;
352
+ price: string;
353
+ credit: string;
354
+ rules: string;
355
+ image: {
356
+ url: string;
357
+ };
358
+ mobileImage: {
359
+ url: string;
360
+ };
361
+ redeemId: number;
362
+ };
363
+ type CreditsCashCopy = {
364
+ title: string;
365
+ list: (RedeemableItemConfig & {
366
+ products: {
367
+ handle: string;
368
+ sku: string;
369
+ }[];
370
+ })[];
371
+ soldOut: string;
372
+ ruleLabel: string;
373
+ unlockRewards: string;
374
+ btnRedeem: string;
375
+ off: string;
376
+ insufficientCredits: string;
377
+ };
378
+
379
+ declare const CreditsCash: ({ copy, className, hideTitle, cardClassName, authCodeActivate, }: {
380
+ copy: CreditsCashCopy;
381
+ className?: string;
382
+ hideTitle?: boolean;
383
+ cardClassName?: string;
384
+ authCodeActivate: {
385
+ openAuthCodePopup: Function;
386
+ isSuccess: boolean;
387
+ setOnSuccess: (arg: Function) => void;
388
+ isSendingActivateEmail: boolean;
389
+ };
390
+ }) => react_jsx_runtime.JSX.Element;
391
+
392
+ type CreditsPageCommon = {
393
+ pointUnit: string;
394
+ ruleLabel: string;
395
+ soldOut: string;
396
+ imageMapping: {
397
+ [key in ConsumeType]: {
398
+ url: string;
399
+ };
400
+ };
401
+ };
402
+
403
+ type CreditsRedeemListCopy = {
404
+ title: string;
405
+ giftCardLabel: string;
406
+ unlockRewards: string;
407
+ btnRedeem: string;
408
+ list: {
409
+ label: string;
410
+ list: {
411
+ id: string;
412
+ type: string;
413
+ value: string;
414
+ rules: string[];
415
+ }[];
416
+ }[];
417
+ validatorInfo: {
418
+ addressInfo: {
419
+ name: string;
420
+ country: string;
421
+ province: string;
422
+ city: string;
423
+ address: string;
424
+ };
425
+ };
426
+ redeemModal: {
427
+ confirmTitle: string;
428
+ confirmButton: string;
429
+ commonError: string;
430
+ redeemLimitError: string;
431
+ inventoryNotEnough: string;
432
+ creditsNotEnough: string;
433
+ crossSiteError: string;
434
+ errorImageUrl: string;
435
+ coupon: {
436
+ successDesc: string;
437
+ successTitle: string;
438
+ successButton: string;
439
+ successButtonUrl: string;
440
+ };
441
+ product: {
442
+ required: string;
443
+ invalidEmail: string;
444
+ shippingAddress: string;
445
+ shippingProduct: string;
446
+ addressForm: {
447
+ key: string;
448
+ type: string;
449
+ label: string;
450
+ isSelect: boolean;
451
+ required: boolean;
452
+ placeholder: string;
453
+ }[][];
454
+ form: {
455
+ key: string;
456
+ type: string;
457
+ isSelect: boolean;
458
+ required: boolean;
459
+ placeholder: string;
460
+ }[][];
461
+ successDesc: string[];
462
+ rules: string[];
463
+ steps: {
464
+ imageUrl: string;
465
+ title: string;
466
+ }[];
467
+ quantityLabel: string;
468
+ totalPriceLabel: string;
469
+ variantLabel: string;
470
+ shippingFeeLabel: string;
471
+ paymentButton: string;
472
+ stepTitle: string;
473
+ };
474
+ };
475
+ copied: string;
476
+ off: string;
477
+ copy: string;
478
+ } & CreditsPageCommon;
479
+
480
+ declare function CreditsRedeemList({ copy, className, tabClassName, hideTitle, cardClassName, activate, }: {
481
+ copy: CreditsRedeemListCopy;
482
+ className?: string;
483
+ tabClassName?: string;
484
+ hideTitle?: boolean;
485
+ cardClassName?: string;
486
+ activate: {
487
+ openAuthCodePopup: () => void;
488
+ isSuccess: boolean;
489
+ setOnSuccess: (callback: Function) => void;
490
+ };
491
+ }): react_jsx_runtime.JSX.Element;
492
+
493
+ export { Chat, CreditsBanner, CreditsBenefits, CreditsCash, CreditsFaq, CreditsInfoCard, CreditsProvider, CreditsRedeemList, CreditsUploadReceiptModal, CreditsWaysToGetCredits, useCreditsContext, useUploadReceipt as useCreditsUploadReceipt };