@funkit/connect 3.0.0-next.2 → 3.0.0-next.3

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 (89) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/{chunk-SCKVYTAC.js → chunk-76VEFMWE.js} +5 -2
  3. package/dist/{chunk-LKYHSF23.js → chunk-Z3QREJ3Q.js} +6 -3
  4. package/dist/components/AsyncImage/AsyncImage.d.ts +3 -2
  5. package/dist/components/Box/Box.d.ts +28 -24
  6. package/dist/components/Dialog/Dialog.css.d.ts +1 -0
  7. package/dist/components/Dialog/Dialog.d.ts +3 -1
  8. package/dist/components/Dialog/DialogContent.css.d.ts +2 -0
  9. package/dist/components/DydxSwitchModalTab/DydxSwitchModalTab.d.ts +10 -0
  10. package/dist/components/DydxSwitchModalTab/Icons.d.ts +3 -0
  11. package/dist/components/FunAsset/FunAssetItem.d.ts +1 -1
  12. package/dist/components/FunBadge/FunBadge.d.ts +2 -1
  13. package/dist/components/FunButton/FunButton.css.d.ts +3 -2
  14. package/dist/components/FunButton/FunIconButton.d.ts +24 -15
  15. package/dist/components/FunButton/FunRedirectButton.d.ts +8 -0
  16. package/dist/components/FunCheckoutModal/FunCheckoutPrimaryInfo.d.ts +4 -2
  17. package/dist/components/FunCheckoutModal/FunCheckoutVerifyDetailsStep.d.ts +1 -1
  18. package/dist/components/FunConnectOptions/FunSignInStep.d.ts +2 -0
  19. package/dist/components/FunContainer/FunContainer.d.ts +1 -3
  20. package/dist/components/FunInput/FunTwoFaInput.d.ts +5 -4
  21. package/dist/components/FunNoResults/FunNoResults.d.ts +2 -2
  22. package/dist/components/FunPayments/FunPaymentMethods.d.ts +4 -18
  23. package/dist/components/FunPayments/FunPaymentMoonpayType.css.d.ts +1 -0
  24. package/dist/components/FunPayments/FunPaymentMoonpayType.d.ts +1 -3
  25. package/dist/components/FunPayments/FunPaymentSetup.d.ts +2 -3
  26. package/dist/components/FunSkeletonLoader/FunSkeletonBlock.d.ts +9 -6
  27. package/dist/components/FunSkeletonLoader/FunSkeletonCircle.d.ts +14 -5
  28. package/dist/components/FunkitProvider/FunkitCheckoutContext.d.ts +4 -1
  29. package/dist/components/FunkitProvider/FunkitConfigContext.d.ts +3 -43
  30. package/dist/components/FunkitProvider/FunkitMoonpayProvider.d.ts +4 -1
  31. package/dist/components/FunkitProvider/FunkitThemeProvider.d.ts +16 -4
  32. package/dist/components/FunkitProvider/GeneralWalletProvider.d.ts +7 -3
  33. package/dist/components/Icons/AcornsIcon.d.ts +3 -1
  34. package/dist/components/Icons/BitFlyerIcon.d.ts +3 -1
  35. package/dist/components/Icons/BitfinexIcon.d.ts +4 -0
  36. package/dist/components/Icons/BitstampIcon.d.ts +3 -1
  37. package/dist/components/Icons/BybitIcon.d.ts +3 -1
  38. package/dist/components/Icons/CoinlistIcon.d.ts +3 -1
  39. package/dist/components/Icons/CryptoComIcon.d.ts +3 -1
  40. package/dist/components/Icons/DeviceConfirmationIcon.d.ts +2 -0
  41. package/dist/components/Icons/EmailConfirmationIcon.d.ts +2 -0
  42. package/dist/components/Icons/EtradeIcon.d.ts +3 -1
  43. package/dist/components/Icons/EvmWallet.d.ts +2 -0
  44. package/dist/components/Icons/GateIo.d.ts +3 -1
  45. package/dist/components/Icons/HuobiIcon.d.ts +3 -1
  46. package/dist/components/Icons/KrakenIcon.d.ts +3 -1
  47. package/dist/components/Icons/KucoinIcon.d.ts +3 -1
  48. package/dist/components/Icons/MailIcon.d.ts +5 -1
  49. package/dist/components/Icons/OkxIcon.d.ts +3 -1
  50. package/dist/components/Icons/PaymentMethodIcons.d.ts +23 -0
  51. package/dist/components/Icons/Spinner.d.ts +1 -3
  52. package/dist/components/Icons/StashIcon.d.ts +3 -1
  53. package/dist/components/Icons/WalletIcon.d.ts +0 -2
  54. package/dist/components/Icons/WhitelistIcon.d.ts +2 -0
  55. package/dist/components/ProfileDetails/ActivityTraversalContext.d.ts +17 -26
  56. package/dist/components/ProfileDetails/FunProfileViews/ActivityHistory/ActivityHistory.d.ts +2 -8
  57. package/dist/components/ProfileDetails/FunProfileViews/Home/Home.css.d.ts +0 -7
  58. package/dist/components/ProfileDetails/FunProfileViews/Home/HomeCheckoutDisplayRow.d.ts +1 -0
  59. package/dist/components/ProfileDetails/FunProfileViews/Home/HomeTokenDisplayRow.d.ts +1 -0
  60. package/dist/components/ProfileDetails/FunProfileViews/Home/index.d.ts +4 -9
  61. package/dist/components/ProfileDetails/FunProfileViews/Settings/Settings.d.ts +5 -0
  62. package/dist/components/ProfileDetails/ProfileDetails.d.ts +1 -1
  63. package/dist/components/Text/Text.d.ts +1 -1
  64. package/dist/consts/payment.d.ts +1 -8
  65. package/dist/css/sprinkles.css.d.ts +37 -27
  66. package/dist/hooks/useDynamicFont.d.ts +1 -0
  67. package/dist/hooks/useMesh.d.ts +3 -2
  68. package/dist/hooks/useScrollDivider.d.ts +4 -3
  69. package/dist/index.css +1987 -1267
  70. package/dist/index.js +10793 -10412
  71. package/dist/themes/darkTheme.d.ts +4 -1
  72. package/dist/themes/darkTheme.js +1 -1
  73. package/dist/themes/lightTheme.d.ts +4 -1
  74. package/dist/themes/lightTheme.js +1 -1
  75. package/dist/utils/assets.d.ts +0 -4
  76. package/dist/utils/checkout.d.ts +1 -5
  77. package/dist/utils/combineChainSymbolOrAddress.d.ts +4 -0
  78. package/dist/utils/deposit.d.ts +2 -3
  79. package/dist/utils/flags/config.d.ts +7 -2
  80. package/dist/utils/flags/index.d.ts +2 -1
  81. package/dist/utils/isMainnetUsdt.d.ts +2 -0
  82. package/dist/utils/noop.d.ts +1 -0
  83. package/dist/wallets/walletConnectors/index.js +57 -57
  84. package/package.json +4 -4
  85. package/dist/components/FunPayments/FunPaymentOtcType.d.ts +0 -2
  86. package/dist/components/SkeletalLoader/SkeletalLoader.css.d.ts +0 -1
  87. package/dist/components/SkeletalLoader/SkeletalLoader.d.ts +0 -2
  88. package/dist/css/presets.d.ts +0 -2
  89. package/dist/utils/flatten.d.ts +0 -1
@@ -28,6 +28,7 @@ export declare const darkTheme: {
28
28
  offBackground: string;
29
29
  hoverState: string;
30
30
  offBackgroundInverse: string;
31
+ dydxSwitchActiveBackground: string;
31
32
  primaryText: string;
32
33
  secondaryText: string;
33
34
  tertiaryText: string;
@@ -59,6 +60,9 @@ export declare const darkTheme: {
59
60
  buttonStroke: string;
60
61
  buttonTextSecondaryDisabled: string;
61
62
  buttonTextSecondary: string;
63
+ buttonIconBackgroundHover: string;
64
+ buttonIconBackgroundPressed: string;
65
+ buttonIconStroke: string;
62
66
  };
63
67
  shadows: {
64
68
  connectButton: string;
@@ -66,7 +70,6 @@ export declare const darkTheme: {
66
70
  selectedOption: string;
67
71
  selectedWallet: string;
68
72
  button: string;
69
- callToAction: string;
70
73
  };
71
74
  moonpayTheme: string;
72
75
  fontSize: {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  darkTheme
4
- } from "../chunk-LKYHSF23.js";
4
+ } from "../chunk-Z3QREJ3Q.js";
5
5
  import "../chunk-HFT6OV3T.js";
6
6
  export {
7
7
  darkTheme
@@ -28,6 +28,7 @@ export declare const lightTheme: {
28
28
  offBackground: string;
29
29
  hoverState: string;
30
30
  offBackgroundInverse: string;
31
+ dydxSwitchActiveBackground: string;
31
32
  primaryText: string;
32
33
  secondaryText: string;
33
34
  tertiaryText: string;
@@ -59,6 +60,9 @@ export declare const lightTheme: {
59
60
  buttonStroke: string;
60
61
  buttonTextSecondaryDisabled: string;
61
62
  buttonTextSecondary: string;
63
+ buttonIconBackgroundHover: string;
64
+ buttonIconBackgroundPressed: string;
65
+ buttonIconStroke: string;
62
66
  };
63
67
  shadows: {
64
68
  connectButton: string;
@@ -66,7 +70,6 @@ export declare const lightTheme: {
66
70
  selectedOption: string;
67
71
  selectedWallet: string;
68
72
  button: string;
69
- callToAction: string;
70
73
  };
71
74
  moonpayTheme: string;
72
75
  fontSize: {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  lightTheme
4
- } from "../chunk-SCKVYTAC.js";
4
+ } from "../chunk-76VEFMWE.js";
5
5
  import "../chunk-HFT6OV3T.js";
6
6
  export {
7
7
  lightTheme
@@ -1,9 +1,5 @@
1
1
  import { FunkitActiveCheckoutItem } from '../components/FunkitProvider/FunkitCheckoutContext';
2
2
  import { PaymentMethod } from '../consts/payment';
3
- export declare function combineChainSymbolOrAddress({ chainId, symbolOrAddress, }: {
4
- chainId: string;
5
- symbolOrAddress: string;
6
- }): string | null;
7
3
  export declare const getNormalizedTokenBalance: (tokenBalance: number, decimals: number) => number;
8
4
  export declare const isAssetUsableToPayForCheckout: (checkoutItem: FunkitActiveCheckoutItem, paymentMethod: PaymentMethod, assetChainId: string, assetTokenAddress: string, isWeb2Login: boolean, isWeb3Login: boolean) => {
9
5
  isUsable: boolean;
@@ -109,12 +109,8 @@ export declare function categorizeCheckoutHistories(checkoutHistoryList: Checkou
109
109
  depositAddrMap: CheckoutHistoryDepositAddrMap;
110
110
  currentDepositAddrMap: CheckoutHistoryDepositAddrMap;
111
111
  };
112
- export declare function getCheckoutStateStepNumber(state: CheckoutState): 0 | 1 | 2 | 3;
112
+ export declare function getCheckoutStateStepNumber(state: CheckoutState): 0 | 1 | 3 | 2;
113
113
  export declare function formatTokenAmountForMoonpay(amount: number, mpCurrencyCode: string): string;
114
- export declare function combineChainSymbolOrAddress({ chainId, symbolOrAddress, }: {
115
- chainId: string;
116
- symbolOrAddress: string;
117
- }): string | null;
118
114
  export declare function getEstimateEndTimeInfo(createdTimeMs: number, checkoutItem: FunkitActiveCheckoutItem): {
119
115
  estimatedEndTimeMs: number;
120
116
  estimatedEndTimeFromNowMs: number;
@@ -0,0 +1,4 @@
1
+ export declare function combineChainSymbolOrAddress({ chainId, symbolOrAddress, }: {
2
+ chainId: string;
3
+ symbolOrAddress: string;
4
+ }): string | null;
@@ -1,6 +1,5 @@
1
- import { PaymentFlow } from '../consts/payment';
2
1
  export declare const MINIMUM_MOONPAY_DEPOSIT_AMOUNT_USD = 35;
3
- export declare function isAmountValidForMoonpay({ amountUsd, }: {
2
+ export declare function isAmountInvalidForMoonpay({ amountUsd, }: {
4
3
  amountUsd: string | undefined | null;
5
4
  }): boolean;
6
- export declare function generateInsufficientAmountForMoonpayError(paymentFlow: PaymentFlow, isShortened: boolean): string;
5
+ export declare function generateInsufficientAmountForMoonpayError(isShortened: boolean): string;
@@ -19,12 +19,17 @@ export declare enum FlagKey {
19
19
  /** Whether zksync assets can be used as source asset for payment in a mantle checkout */
20
20
  DisableZkSyncSourceAssetsForMantleCheckouts = "disable_zksync_source_assets_for_mantle_checkouts",
21
21
  /** Whether zksync assets can be used as source asset for payment in a dydx checkout */
22
- DisableZkSyncSourceAssetsForDydxCheckouts = "disable_zksync_source_assets_for_dydx_checkouts"
22
+ DisableZkSyncSourceAssetsForDydxCheckouts = "disable_zksync_source_assets_for_dydx_checkouts",
23
+ /** Which exchanges to show in the exchange selection screen */
24
+ SupportedExchanges = "supported_exchanges",
25
+ /** Which countries should be blocked for Funkit Checkout. Reference Alpha-2 Code format https://www.iban.com/country-codes. */
26
+ BlockedCountries = "blocked_countries"
23
27
  }
24
28
  export declare const flagConfig: {
25
- [FlagKey.SelectPaymentMethodText]: StringFlagConfig;
26
29
  [FlagKey.PaymentMethodCopyV1]: BooleanFlagConfig;
27
30
  [FlagKey.DisableMantleSourceAssets]: BooleanFlagConfig;
28
31
  [FlagKey.DisableZkSyncSourceAssetsForMantleCheckouts]: BooleanFlagConfig;
29
32
  [FlagKey.DisableZkSyncSourceAssetsForDydxCheckouts]: BooleanFlagConfig;
33
+ [FlagKey.SupportedExchanges]: StringFlagConfig;
34
+ [FlagKey.BlockedCountries]: StringFlagConfig;
30
35
  };
@@ -2,10 +2,11 @@ import { FlagKey } from './config';
2
2
  import { FeatureFlag } from './impl';
3
3
  export { FlagKey };
4
4
  declare const singleton: FeatureFlag<{
5
- select_payment_method_text: import("./types").StringFlagConfig;
6
5
  payment_method_copy_v1: import("./types").BooleanFlagConfig;
7
6
  disable_mantle_source_assets: import("./types").BooleanFlagConfig;
8
7
  disable_zksync_source_assets_for_mantle_checkouts: import("./types").BooleanFlagConfig;
9
8
  disable_zksync_source_assets_for_dydx_checkouts: import("./types").BooleanFlagConfig;
9
+ supported_exchanges: import("./types").StringFlagConfig;
10
+ blocked_countries: import("./types").StringFlagConfig;
10
11
  }>;
11
12
  export declare const flags: Pick<typeof singleton, "init" | "getBool" | "getNumber" | "getString">;
@@ -0,0 +1,2 @@
1
+ import { Address } from 'viem';
2
+ export declare function isMainnetUsdt(chainId: number | string, address: Address): boolean;
@@ -0,0 +1 @@
1
+ export declare const noop: () => undefined;
@@ -1,88 +1,91 @@
1
1
  "use client";
2
2
  import {
3
- zerionWallet
4
- } from "./chunk-DBP432DI.js";
3
+ rainbowWallet
4
+ } from "./chunk-OHJBALD3.js";
5
5
  import {
6
- xdefiWallet
7
- } from "./chunk-RVIZMVFR.js";
6
+ mewWallet
7
+ } from "./chunk-CVYXTHZ6.js";
8
8
  import {
9
- metaMaskWallet
10
- } from "./chunk-ODRDT73B.js";
9
+ trustWallet
10
+ } from "./chunk-X45WXZDO.js";
11
+ import {
12
+ talismanWallet
13
+ } from "./chunk-OTXHQMSG.js";
11
14
  import {
12
15
  tokenPocketWallet
13
16
  } from "./chunk-ISJYPD3T.js";
14
- import {
15
- omniWallet
16
- } from "./chunk-II6YBG2B.js";
17
- import {
18
- roninWallet
19
- } from "./chunk-63YLN6R5.js";
20
- import {
21
- injectedWallet
22
- } from "./chunk-E5NYR4SS.js";
23
- import {
24
- trustWallet
25
- } from "./chunk-X45WXZDO.js";
26
17
  import {
27
18
  uniswapWallet
28
19
  } from "./chunk-QFRZGNNV.js";
29
20
  import {
30
21
  walletConnectWallet
31
22
  } from "./chunk-OFU3PEVT.js";
23
+ import {
24
+ tokenaryWallet
25
+ } from "./chunk-FAYEL4JP.js";
26
+ import {
27
+ xdefiWallet
28
+ } from "./chunk-RVIZMVFR.js";
32
29
  import {
33
30
  zealWallet
34
31
  } from "./chunk-BUUV6BS4.js";
32
+ import {
33
+ zerionWallet
34
+ } from "./chunk-DBP432DI.js";
35
+ import {
36
+ phantomWallet
37
+ } from "./chunk-KEVUI6AA.js";
35
38
  import {
36
39
  ramperWallet
37
40
  } from "./chunk-TKXQYHWJ.js";
41
+ import {
42
+ roninWallet
43
+ } from "./chunk-63YLN6R5.js";
38
44
  import {
39
45
  safeheronWallet
40
46
  } from "./chunk-FCIRHRFH.js";
41
47
  import {
42
48
  safeWallet
43
49
  } from "./chunk-Z2QCE6O6.js";
44
- import {
45
- subWallet
46
- } from "./chunk-N3ELQYCY.js";
47
50
  import {
48
51
  safepalWallet
49
52
  } from "./chunk-AKAT37SI.js";
53
+ import {
54
+ subWallet
55
+ } from "./chunk-N3ELQYCY.js";
50
56
  import {
51
57
  tahoWallet
52
58
  } from "./chunk-6AYBA6IH.js";
53
59
  import {
54
- talismanWallet
55
- } from "./chunk-OTXHQMSG.js";
60
+ metaMaskWallet
61
+ } from "./chunk-ODRDT73B.js";
56
62
  import {
57
- tokenaryWallet
58
- } from "./chunk-FAYEL4JP.js";
63
+ okxWallet
64
+ } from "./chunk-5HXH52SO.js";
59
65
  import {
60
66
  oktoWallet
61
67
  } from "./chunk-MBQTOALG.js";
62
68
  import {
63
- okxWallet
64
- } from "./chunk-5HXH52SO.js";
69
+ omniWallet
70
+ } from "./chunk-II6YBG2B.js";
65
71
  import {
66
- foxWallet
67
- } from "./chunk-WAOREEBE.js";
72
+ oneKeyWallet
73
+ } from "./chunk-ZP2SV6KN.js";
68
74
  import {
69
75
  oneInchWallet
70
76
  } from "./chunk-I7MKK24W.js";
71
77
  import {
72
- oneKeyWallet
73
- } from "./chunk-ZP2SV6KN.js";
74
- import {
75
- phantomWallet
76
- } from "./chunk-KEVUI6AA.js";
78
+ ledgerWallet
79
+ } from "./chunk-ZMHCZCGS.js";
77
80
  import {
78
81
  rabbyWallet
79
82
  } from "./chunk-H5LLXNOI.js";
80
- import {
81
- rainbowWallet
82
- } from "./chunk-OHJBALD3.js";
83
83
  import {
84
84
  frameWallet
85
85
  } from "./chunk-KPVNJO3R.js";
86
+ import {
87
+ foxWallet
88
+ } from "./chunk-WAOREEBE.js";
86
89
  import {
87
90
  frontierWallet
88
91
  } from "./chunk-LCOUKF2U.js";
@@ -96,29 +99,26 @@ import {
96
99
  kresusWallet
97
100
  } from "./chunk-QQJKQCII.js";
98
101
  import {
99
- ledgerWallet
100
- } from "./chunk-ZMHCZCGS.js";
101
- import {
102
- mewWallet
103
- } from "./chunk-CVYXTHZ6.js";
104
- import {
105
- bybitWallet
106
- } from "./chunk-3AZNOY75.js";
107
- import {
108
- clvWallet
109
- } from "./chunk-UHHA5V52.js";
102
+ injectedWallet
103
+ } from "./chunk-E5NYR4SS.js";
110
104
  import {
111
105
  coin98Wallet
112
106
  } from "./chunk-ZXGMW3OS.js";
107
+ import {
108
+ coinbaseWallet
109
+ } from "./chunk-PNEDRY6O.js";
113
110
  import {
114
111
  coreWallet
115
112
  } from "./chunk-MOOW2AOC.js";
116
113
  import {
117
- coinbaseWallet
118
- } from "./chunk-PNEDRY6O.js";
114
+ bitverseWallet
115
+ } from "./chunk-BQEOIDHP.js";
119
116
  import {
120
117
  dawnWallet
121
118
  } from "./chunk-KCTWDMQP.js";
119
+ import {
120
+ bitgetWallet
121
+ } from "./chunk-IEVZW3XR.js";
122
122
  import {
123
123
  desigWallet
124
124
  } from "./chunk-44CHUPEQ.js";
@@ -131,23 +131,23 @@ import {
131
131
  import {
132
132
  bifrostWallet
133
133
  } from "./chunk-KL5Z3XHJ.js";
134
- import {
135
- bitgetWallet
136
- } from "./chunk-IEVZW3XR.js";
137
134
  import {
138
135
  bitskiWallet
139
136
  } from "./chunk-OCCT5PIN.js";
140
- import {
141
- bitverseWallet
142
- } from "./chunk-BQEOIDHP.js";
143
137
  import {
144
138
  bloomWallet
145
139
  } from "./chunk-J64P6XK3.js";
146
140
  import "./chunk-RETKWSKD.js";
147
- import "./chunk-23WIEY36.js";
148
141
  import {
149
142
  braveWallet
150
143
  } from "./chunk-NUEOWEZS.js";
144
+ import {
145
+ bybitWallet
146
+ } from "./chunk-3AZNOY75.js";
147
+ import {
148
+ clvWallet
149
+ } from "./chunk-UHHA5V52.js";
150
+ import "./chunk-23WIEY36.js";
151
151
  import "./chunk-WRA2DVJ7.js";
152
152
  export {
153
153
  argentWallet,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "3.0.0-next.2",
3
+ "version": "3.0.0-next.3",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -59,7 +59,7 @@
59
59
  "postcss": "^8.4.32",
60
60
  "react": "^18.3.0",
61
61
  "tsx": "^4.15.7",
62
- "vitest": "^1.6.0"
62
+ "vitest": "^2.0.5"
63
63
  },
64
64
  "dependencies": {
65
65
  "@datadog/browser-logs": "^5.22.0",
@@ -78,9 +78,9 @@
78
78
  "react-remove-scroll": "2.5.7",
79
79
  "ua-parser-js": "^1.0.37",
80
80
  "uuid": "^9.0.1",
81
- "@funkit/core": "2.1.2-next.1",
82
81
  "@funkit/api-base": "1.0.2-next.0",
83
- "@funkit/wagmi-tools": "3.0.4-next.1"
82
+ "@funkit/wagmi-tools": "3.0.4-next.1",
83
+ "@funkit/core": "2.1.2-next.1"
84
84
  },
85
85
  "repository": {
86
86
  "type": "git",
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare function FunPaymentOtcType(): React.JSX.Element;
@@ -1 +0,0 @@
1
- export declare const pulseAnimation: string;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const SkeletalLoader: () => React.JSX.Element[];
@@ -1,2 +0,0 @@
1
- /** Replaces presets by their value in the provided mapping */
2
- export declare function withPresets<Value, Preset extends string>(value: Value | NoInfer<Preset>, presets: Record<Preset, Exclude<Value, Preset>>): Exclude<Value, Preset>;
@@ -1 +0,0 @@
1
- export declare function flatten<Item>(array: Item[][]): Item[];