@berachain/config 0.1.22-beta.1 → 0.1.22

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 (79) hide show
  1. package/dist/bepolia.d.cts +169 -0
  2. package/dist/bepolia.d.ts +5 -3
  3. package/dist/index.d.cts +6 -0
  4. package/dist/index.d.ts +6 -3
  5. package/dist/internal/edge-config/{edgeConfig.codegen.d.ts → index.d.cts} +122 -15
  6. package/dist/internal/edge-config/index.d.ts +393 -5
  7. package/dist/internal/flags/index.d.cts +60 -0
  8. package/dist/internal/flags/index.d.ts +60 -2
  9. package/dist/internal/header-sources.d.cts +22 -0
  10. package/dist/internal/header-sources.d.ts +7 -5
  11. package/dist/internal/index.d.cts +749 -0
  12. package/dist/internal/index.d.ts +173 -139
  13. package/dist/internal/maintenance.d.cts +11 -0
  14. package/dist/internal/maintenance.d.ts +7 -5
  15. package/dist/internal/nextjs/index.d.cts +34 -0
  16. package/dist/internal/nextjs/index.d.ts +6 -5
  17. package/dist/internal/nextjs/utils/index.d.cts +9 -0
  18. package/dist/internal/nextjs/utils/index.d.ts +3 -2
  19. package/dist/internal/sentry/index.d.cts +13 -0
  20. package/dist/internal/sentry/index.d.ts +8 -6
  21. package/dist/internal/sentry/sentry.client.config.d.cts +6 -0
  22. package/dist/internal/sentry/sentry.client.config.d.ts +6 -3
  23. package/dist/internal/tailwind/{config.d.ts → index.d.cts} +16 -14
  24. package/dist/internal/tailwind/index.d.ts +8 -6
  25. package/dist/internal/tsup/index.cjs +4 -30
  26. package/dist/internal/tsup/index.d.cts +6 -0
  27. package/dist/internal/tsup/index.d.ts +6 -3
  28. package/dist/internal/tsup/index.mjs +4 -30
  29. package/dist/internal/wagmi/index.d.cts +12 -0
  30. package/dist/internal/wagmi/index.d.ts +8 -6
  31. package/dist/mainnet.d.cts +154 -0
  32. package/dist/mainnet.d.ts +5 -3
  33. package/dist/{types.d.ts → types-Drv0VlAi.d.cts} +8 -8
  34. package/dist/types-Drv0VlAi.d.ts +214 -0
  35. package/package.json +1 -1
  36. package/dist/bepolia.d.ts.map +0 -1
  37. package/dist/index.d.ts.map +0 -1
  38. package/dist/internal/edge-config/edgeConfig.codegen.d.ts.map +0 -1
  39. package/dist/internal/edge-config/index.d.ts.map +0 -1
  40. package/dist/internal/edge-config/isFlagEnabled.d.ts +0 -17
  41. package/dist/internal/edge-config/isFlagEnabled.d.ts.map +0 -1
  42. package/dist/internal/edge-config/safeGetAll.d.ts +0 -15
  43. package/dist/internal/edge-config/safeGetAll.d.ts.map +0 -1
  44. package/dist/internal/edge-config/safeGetConfig.d.ts +0 -19
  45. package/dist/internal/edge-config/safeGetConfig.d.ts.map +0 -1
  46. package/dist/internal/flags/beraEdgeConfigAdapter.d.ts +0 -9
  47. package/dist/internal/flags/beraEdgeConfigAdapter.d.ts.map +0 -1
  48. package/dist/internal/flags/flags.d.ts +0 -29
  49. package/dist/internal/flags/flags.d.ts.map +0 -1
  50. package/dist/internal/flags/index.d.ts.map +0 -1
  51. package/dist/internal/header-sources.d.ts.map +0 -1
  52. package/dist/internal/index.d.ts.map +0 -1
  53. package/dist/internal/maintenance.d.ts.map +0 -1
  54. package/dist/internal/nextjs/const.d.ts +0 -3
  55. package/dist/internal/nextjs/const.d.ts.map +0 -1
  56. package/dist/internal/nextjs/index.d.ts.map +0 -1
  57. package/dist/internal/nextjs/utils/index.d.ts.map +0 -1
  58. package/dist/internal/sentry/getSentryKeys.d.ts +0 -16
  59. package/dist/internal/sentry/getSentryKeys.d.ts.map +0 -1
  60. package/dist/internal/sentry/index.d.ts.map +0 -1
  61. package/dist/internal/sentry/sentry.client.config.d.ts.map +0 -1
  62. package/dist/internal/sentry/sentry.edge.config.d.ts +0 -3
  63. package/dist/internal/sentry/sentry.edge.config.d.ts.map +0 -1
  64. package/dist/internal/sentry/sentry.server.config.d.ts +0 -3
  65. package/dist/internal/sentry/sentry.server.config.d.ts.map +0 -1
  66. package/dist/internal/sentry/sentryEnvironment.d.ts +0 -6
  67. package/dist/internal/sentry/sentryEnvironment.d.ts.map +0 -1
  68. package/dist/internal/tailwind/config.d.ts.map +0 -1
  69. package/dist/internal/tailwind/index.d.ts.map +0 -1
  70. package/dist/internal/tsup/index.d.ts.map +0 -1
  71. package/dist/internal/wagmi/index.d.ts.map +0 -1
  72. package/dist/mainnet.d.ts.map +0 -1
  73. package/dist/types.d.ts.map +0 -1
  74. package/dist/utils/dynamicEnvVariable.d.ts +0 -21
  75. package/dist/utils/dynamicEnvVariable.d.ts.map +0 -1
  76. package/dist/utils/env.d.ts +0 -29
  77. package/dist/utils/env.d.ts.map +0 -1
  78. package/dist/utils/getUriFromLink.d.ts +0 -3
  79. package/dist/utils/getUriFromLink.d.ts.map +0 -1
@@ -0,0 +1,169 @@
1
+ import { C as ChainId, A as Address } from './types-Drv0VlAi.cjs';
2
+
3
+ declare const bepolia: {
4
+ readonly chainId: ChainId.BEPOLIA;
5
+ readonly tokens: {
6
+ readonly wbera: "0x6969696969696969696969696969696969696969";
7
+ readonly swbera: "0x118D2cEeE9785eaf70C15Cd74CD84c9f8c3EeC9a";
8
+ readonly bgt: "0x656b95E550C07a9ffe548bd4085c72418Ceb1dba";
9
+ readonly wbtc: "0x";
10
+ readonly weth: "0x";
11
+ };
12
+ readonly depositContract: "0x4242424242424242424242424242424242424242";
13
+ readonly pol: {
14
+ readonly rewardVaultHelper: "0xEe233a69A36Db7fC10E03e921D90DEC52Cdce6e2";
15
+ readonly beraChef: "0xdf960E8F3F19C481dDE769edEDD439ea1a63426a";
16
+ readonly factory: "0x94Ad6Ac84f6C6FbA8b8CCbD71d9f4f101def52a8";
17
+ readonly rewardAllocationFactory: "0x7f09Cf6958631513aF0400488F65c7B5c0313F52";
18
+ readonly staker: "0x44F07Ce5AfeCbCC406e6beFD40cc2998eEb8c7C6";
19
+ readonly subgraph: {
20
+ readonly name: "pol-subgraph";
21
+ readonly uri: string;
22
+ readonly headers: {
23
+ Authorization: string;
24
+ } | undefined;
25
+ };
26
+ readonly bribeBoostApi: string;
27
+ readonly supplyMonitor: {
28
+ readonly name: "supply-monitor";
29
+ readonly uri: string;
30
+ };
31
+ readonly bgtIncentiveDistributor: "0xb0d005Fe83E3F1ec876C1a64700c5F0d6265d9E3";
32
+ readonly lstStakerVaultFactory: "0xAf10B532cCC25B26a8e28913D5C4056a77e7a178";
33
+ };
34
+ readonly api: {
35
+ readonly name: "Berachain API";
36
+ readonly uri: string;
37
+ readonly headers: {
38
+ "x-api-key": string;
39
+ } | undefined;
40
+ };
41
+ readonly beep: {
42
+ readonly name: "Berachain Beep";
43
+ readonly uri: string;
44
+ };
45
+ readonly bex: {
46
+ readonly chainName: "BEPOLIA";
47
+ readonly vault: "0x708cA656b68A6b7384a488A36aD33505a77241FE";
48
+ readonly helper: "0xC7c981ADcDC5d48fed0CD52807fb2bAB22676C8f";
49
+ readonly queries: "0xE3723383a0EA73D5c0dE424BAA97F97f86f6cF92";
50
+ readonly relayer: "0x343215E156Ff586711a5B8C49Fe3099BAF22624C";
51
+ readonly factories: {
52
+ readonly composableStable: "0xB60DbBaCEaeC23486a64d12089F467ef949f1bb1";
53
+ readonly weighted: "0xf1d23276C7b271B2aC595C78977b2312E9954D57";
54
+ };
55
+ readonly poolCreationHelper: "0x0dC9964F6CA33d9EF38DEB4925234766127C6B36";
56
+ readonly aggregatorsRouter: "0x0000000000000000000000000000000000000000";
57
+ readonly aggregatorsRouterExecutor: "0x0000000000000000000000000000000000000000";
58
+ readonly haikuRouter: null;
59
+ readonly haikuAgentAddress: null;
60
+ readonly aggregatorsProxyUrl: string;
61
+ readonly recoverFundsApi: "https://t3stbe4i5d40p.testnet.berachain.com";
62
+ readonly recoverFundsContract: "0x0eFeC4379805fAFA7269Ec599a6921f388C8841a";
63
+ readonly balancerDelegatedOwnership: "0xba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1b";
64
+ };
65
+ readonly honey: {
66
+ readonly name: "Honey";
67
+ readonly url: "https://bepolia.honey.berachain.com";
68
+ readonly factory: "0xA4aFef880F5cE1f63c9fb48F661E27F8B4216401";
69
+ readonly pythOracle: "0x5CA67e134c52B1d11E038A5a4eD8Ddcdb1238943";
70
+ readonly pythWrapper: "0xE5Ad9BA751714ec8cdd554b5a9f12BFcA13980cB";
71
+ readonly reader: "0x285e147060CDc5ba902786d3A471224ee6cE0F91";
72
+ readonly token: "0xFCBD14DC51f0A4d49d5E53C2E0950e0bC26d0Dce";
73
+ };
74
+ readonly hub: {
75
+ readonly name: "BeraHub";
76
+ readonly url: "https://bepolia.hub.berachain.com";
77
+ };
78
+ readonly governance: {
79
+ readonly governor: `0x${string}`;
80
+ readonly timelock: `0x${string}`;
81
+ };
82
+ readonly lists: {
83
+ readonly rewardVaultList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/vaults/bepolia.json";
84
+ readonly tokenList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/tokens/bepolia.json";
85
+ readonly validatorList: "https://raw.githubusercontent.com/berachain/metadata/refs/heads/main/src/validators/bepolia.json";
86
+ };
87
+ readonly external: {
88
+ readonly pyth: "0x2880aB155794e7179c9eE2e38200202908C17B43";
89
+ };
90
+ readonly averageBlockTime: 2;
91
+ readonly bridge: {
92
+ readonly name: "BeraBridge";
93
+ readonly url: "https://bepolia.bridge.berachain.com";
94
+ readonly nft: {
95
+ readonly name: "BeraBridge NFT";
96
+ readonly url: "#";
97
+ readonly eth: {
98
+ readonly subgraph: "#";
99
+ };
100
+ readonly berachain: {
101
+ readonly subgraph: "#";
102
+ };
103
+ };
104
+ };
105
+ readonly bend: {
106
+ readonly name: "Bend";
107
+ readonly url: "https://bepolia.bend.berachain.com";
108
+ readonly whiskApi: null;
109
+ readonly production: {
110
+ readonly morpho: null;
111
+ readonly adaptiveCurveIrm: null;
112
+ readonly metaMorphoFactory: null;
113
+ readonly publicAllocator: null;
114
+ readonly bundler3: null;
115
+ readonly generalAdapter1: null;
116
+ readonly supportedVaults: Address[];
117
+ readonly curatorVaults: Address[];
118
+ };
119
+ readonly staging: {
120
+ readonly morpho: null;
121
+ readonly adaptiveCurveIrm: null;
122
+ readonly metaMorphoFactory: null;
123
+ readonly publicAllocator: null;
124
+ readonly bundler3: null;
125
+ readonly generalAdapter1: null;
126
+ readonly supportedVaults: Address[];
127
+ readonly curatorVaults: Address[];
128
+ };
129
+ };
130
+ readonly enso: {
131
+ readonly walletV2Factory: null;
132
+ readonly walletFlashloanAdapter: null;
133
+ };
134
+ readonly explore: {
135
+ readonly name: "Explore";
136
+ readonly url: "https://explore.berachain.com";
137
+ };
138
+ readonly explorer: {
139
+ readonly name: "Berascan";
140
+ readonly url: "https://testnet.berascan.com";
141
+ };
142
+ readonly chain: {
143
+ readonly name: string;
144
+ };
145
+ /**
146
+ * Public faucet configuration.
147
+ *
148
+ * Mainly used in static-monobera.
149
+ */
150
+ readonly faucet: {
151
+ readonly name: "Faucet";
152
+ readonly url: "https://bepolia.faucet.berachain.com";
153
+ /**
154
+ * Amount of BERA the user will receive when using the faucet
155
+ */
156
+ readonly dripAmount: 1;
157
+ /**
158
+ * Time in hours between each drip
159
+ */
160
+ readonly timeGap: 8;
161
+ readonly cloudflareKey: string;
162
+ /**
163
+ * API endpoint to send the request to the faucet
164
+ */
165
+ readonly endpoint: "https://faucet-api.testnet.berachain.com";
166
+ };
167
+ };
168
+
169
+ export { bepolia };
package/dist/bepolia.d.ts CHANGED
@@ -1,5 +1,6 @@
1
- import { type Address, ChainId } from "./types";
2
- export declare const bepolia: {
1
+ import { C as ChainId, A as Address } from './types-Drv0VlAi.js';
2
+
3
+ declare const bepolia: {
3
4
  readonly chainId: ChainId.BEPOLIA;
4
5
  readonly tokens: {
5
6
  readonly wbera: "0x6969696969696969696969696969696969696969";
@@ -164,4 +165,5 @@ export declare const bepolia: {
164
165
  readonly endpoint: "https://faucet-api.testnet.berachain.com";
165
166
  };
166
167
  };
167
- //# sourceMappingURL=bepolia.d.ts.map
168
+
169
+ export { bepolia };
@@ -0,0 +1,6 @@
1
+ import { H as HttpLink } from './types-Drv0VlAi.cjs';
2
+ export { A as Address, a as AppName, B as BeraConfig, C as ChainId, P as ProjectName } from './types-Drv0VlAi.cjs';
3
+
4
+ declare function getUriFromLink(link: HttpLink): string;
5
+
6
+ export { HttpLink, getUriFromLink };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,6 @@
1
- export * from "./types";
2
- export * from "./utils/getUriFromLink";
3
- //# sourceMappingURL=index.d.ts.map
1
+ import { H as HttpLink } from './types-Drv0VlAi.js';
2
+ export { A as Address, a as AppName, B as BeraConfig, C as ChainId, P as ProjectName } from './types-Drv0VlAi.js';
3
+
4
+ declare function getUriFromLink(link: HttpLink): string;
5
+
6
+ export { HttpLink, getUriFromLink };
@@ -1,9 +1,11 @@
1
+ import { C as ChainId, a as AppName$1 } from '../../types-Drv0VlAi.cjs';
2
+
1
3
  /**
2
4
  * This file was automatically generated by json-schema-to-typescript.
3
5
  * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
4
6
  * and run json-schema-to-typescript to regenerate this file.
5
7
  */
6
- export type DynamicEnabled = boolean | {
8
+ type DynamicEnabled = boolean | {
7
9
  chain?: ("mainnet" | "bepolia")[];
8
10
  /**
9
11
  * If set, the flag will only be enabled on the specified branch. Otherwise, it will be enabled on all branches.
@@ -21,13 +23,13 @@ export type DynamicEnabled = boolean | {
21
23
  endAt?: string;
22
24
  condition?: "AND" | "OR";
23
25
  };
24
- export type AppName = "BeraHub" | "Honey" | "Bend";
25
- export type Address = string;
26
- export type MixedBannerItem = BannerItemV2 | StandardBannerItem;
26
+ type AppName = "BeraHub" | "Honey" | "Bend";
27
+ type Address = string;
28
+ type MixedBannerItem = BannerItemV2 | StandardBannerItem;
27
29
  /**
28
30
  * Edge config schema. Please update this in the @berachain/config package first and keep it stored there.
29
31
  */
30
- export interface EdgeConfigSchema {
32
+ interface EdgeConfigSchema {
31
33
  $schema?: string;
32
34
  flags: {
33
35
  [k: string]: DynamicEnabled;
@@ -126,6 +128,10 @@ export interface EdgeConfigSchema {
126
128
  unboost?: BgtMigrationStep;
127
129
  redeemBGT?: BgtMigrationStep;
128
130
  stakeBERA?: BgtMigrationStep;
131
+ unstake?: BgtMigrationStep;
132
+ unstakeExternal?: BgtMigrationStep;
133
+ withdraw?: BgtMigrationStep;
134
+ redeem?: BgtMigrationStep;
129
135
  };
130
136
  /**
131
137
  * Copy for the Incentives tab.
@@ -157,6 +163,19 @@ export interface EdgeConfigSchema {
157
163
  */
158
164
  bepolia?: BgtDerivative[];
159
165
  };
166
+ /**
167
+ * Liquidity pools that use BGT-derivative tokens, listed in the 'BGT derivatives' tab (Withdraw step), configured per chain. When a chain has no entries, no LP positions are tracked for that chain. Omit a chain entirely to fall back to the in-code defaults for that chain.
168
+ */
169
+ derivativePools?: {
170
+ /**
171
+ * Derivative pools for Berachain mainnet.
172
+ */
173
+ mainnet?: DerivativePool[];
174
+ /**
175
+ * Derivative pools for the Bepolia testnet.
176
+ */
177
+ bepolia?: DerivativePool[];
178
+ };
160
179
  /**
161
180
  * Copy for the site-wide nudge banner shown when a user has un-migrated BGT positions.
162
181
  */
@@ -211,7 +230,7 @@ export interface EdgeConfigSchema {
211
230
  }[];
212
231
  };
213
232
  }
214
- export interface VaultItem {
233
+ interface VaultItem {
215
234
  address: Address;
216
235
  enabled: DynamicEnabled;
217
236
  _name?: string;
@@ -219,7 +238,7 @@ export interface VaultItem {
219
238
  /**
220
239
  * Copy for a single step in the BGT migration widget. Each field is optional — missing fields fall back to the in-code defaults.
221
240
  */
222
- export interface BgtMigrationStep {
241
+ interface BgtMigrationStep {
223
242
  /**
224
243
  * Label shown in the stepper sidebar.
225
244
  */
@@ -236,25 +255,66 @@ export interface BgtMigrationStep {
236
255
  /**
237
256
  * A deprecated BGT-derivative token surfaced in the migration widget's 'BGT derivatives' tab. Addresses are chain-specific, so this list is configured per chain.
238
257
  */
239
- export interface BgtDerivative {
258
+ interface BgtDerivative {
240
259
  /**
241
260
  * Token symbol shown in the UI (e.g. 'iBGT').
242
261
  */
243
262
  symbol: string;
263
+ /**
264
+ * Human-readable token name (e.g. 'Infrared BGT').
265
+ */
266
+ tokenName?: string;
244
267
  /**
245
268
  * Human-readable source protocol (e.g. 'Infrared'), shown on the 'Unstake on {protocol}' link.
246
269
  */
247
270
  protocol: string;
248
271
  /**
249
- * ERC20 address of the derivative token; the in-wallet (idle) balance is read from here.
272
+ * ERC20 address of the derivative token; the in-wallet (idle) balance is read from here, and native redemption to BERA/WBERA is called on it.
250
273
  */
251
274
  tokenAddress: string;
252
275
  /**
253
- * External page where the user unstakes / redeems this derivative.
276
+ * The derivative's own single-asset staking contract; its staked balance surfaces an Unstake row. Omit when the derivative has no native staking.
277
+ */
278
+ stakingContract?: string;
279
+ /**
280
+ * External page where the user unstakes this derivative from its own staking (Unstake step, derivative-staking rows).
254
281
  */
255
282
  unstakeUrl: string;
283
+ /**
284
+ * External page where the user redeems this derivative for BERA (Redeem step). Falls back to `unstakeUrl` when omitted.
285
+ */
286
+ redeemUrl?: string;
256
287
  }
257
- export interface BannerItemV2 {
288
+ /**
289
+ * A liquidity pool that uses a BGT-derivative token, surfaced in the migration widget's 'BGT derivatives' tab (Withdraw step). The user may hold the LP token idle, or have it staked in a reward vault and/or an Infrared vault. Addresses are chain-specific, so this list is configured per chain.
290
+ */
291
+ interface DerivativePool {
292
+ /**
293
+ * Pool display name (e.g. 'osBGT / sWBERA').
294
+ */
295
+ name: string;
296
+ /**
297
+ * Pool protocol — determines the withdraw mechanism.
298
+ */
299
+ protocol: "Kodiak" | "HUB";
300
+ /**
301
+ * Pool / LP-token address; the idle LP balance is read from here and liquidity is withdrawn from it.
302
+ */
303
+ poolAddress: string;
304
+ /**
305
+ * Berachain Hub/Kodiak/Bera reward vault that stakes this pool's LP token. Omit when the pool has none.
306
+ */
307
+ rewardVault?: string;
308
+ /**
309
+ * Infrared vault that stakes this pool's LP token. Omit when the pool has none.
310
+ */
311
+ infraredVault?: string;
312
+ /**
313
+ * Infrared reward-vault page for `infraredVault` (Infrared uses slug URLs, not address-based). Falls back to the Infrared vaults list when omitted.
314
+ */
315
+ infraredUrl?: string;
316
+ }
317
+ interface BannerItemV2 {
258
318
  text: string;
259
319
  className?: string;
260
320
  linkClassName?: string;
@@ -264,11 +324,11 @@ export interface BannerItemV2 {
264
324
  paths?: string[];
265
325
  variant?: "info" | "warning" | "bend" | "honey" | "hub";
266
326
  }
267
- export interface StandardBannerItem {
327
+ interface StandardBannerItem {
268
328
  enabled: DynamicEnabled;
269
329
  type: "rpc" | "bepolia" | "slow";
270
330
  }
271
- export interface TokenItem {
331
+ interface TokenItem {
272
332
  address: Address;
273
333
  decimals: number;
274
334
  symbol: string;
@@ -279,8 +339,55 @@ export interface TokenItem {
279
339
  chainId?: number;
280
340
  enabled: DynamicEnabled;
281
341
  }
282
- export interface LstStakingVaultItem {
342
+ interface LstStakingVaultItem {
283
343
  address: Address;
284
344
  enabled: DynamicEnabled;
285
345
  }
286
- //# sourceMappingURL=edgeConfig.codegen.d.ts.map
346
+
347
+ /**
348
+ * Checks if a dynamic feature flag is enabled based on the provided chain and environment.
349
+ *
350
+ * @param flag - The dynamic flag value, which can be a boolean or an object specifying conditions.
351
+ * @param options - Optional parameters to override the default chain and environment.
352
+ * @param options.chain - The chain ID to check against (defaults to current chainId).
353
+ * @param options.environment - The environment to check against (defaults to process.env.VERCEL_TARGET_ENV).
354
+ * @returns True if the flag is enabled for the given chain and environment, false otherwise.
355
+ */
356
+ declare function isFlagEnabled(flag: DynamicEnabled, { chain, environment, app, }?: {
357
+ chain?: ChainId;
358
+ environment?: string;
359
+ app?: AppName$1;
360
+ }): boolean;
361
+
362
+ /**
363
+ * Safely retrieves all values from the Vercel Edge Config.
364
+ *
365
+ * @template T - The type of the config schema to retrieve (defaults to EdgeConfigSchema).
366
+ * @param options - Optional parameters.
367
+ * @param options.chain - The chain ID to check against (not currently used).
368
+ * @param options.environment - The environment to check against (not currently used).
369
+ * @param options.onError - Optional error handler callback.
370
+ * @returns A promise that resolves to the config object, or undefined if retrieval fails.
371
+ */
372
+ declare function safeGetAll<T = EdgeConfigSchema>({ onError, }?: {
373
+ onError?: (error: unknown) => void;
374
+ }): Promise<T | undefined>;
375
+
376
+ /**
377
+ * Safely retrieves a value from the Vercel Edge Config by key.
378
+ *
379
+ * @template T - The key of the EdgeConfigSchema to retrieve.
380
+ * @param flagName - The name of the config flag to retrieve.
381
+ * @param options - Optional parameters.
382
+ * @param options.chain - The chain ID to check against (not currently used).
383
+ * @param options.environment - The environment to check against (not currently used).
384
+ * @param options.onError - Optional error handler callback.
385
+ * @returns A promise that resolves to the value of the config flag, or undefined if retrieval fails.
386
+ */
387
+ declare function safeGetConfig<T extends keyof EdgeConfigSchema>(flagName: T, { onError, }?: {
388
+ chain?: ChainId;
389
+ environment?: string;
390
+ onError?: (error: unknown) => void;
391
+ }): Promise<EdgeConfigSchema[T] | undefined>;
392
+
393
+ export { type Address, type AppName, type BannerItemV2, type BgtDerivative, type BgtMigrationStep, type DerivativePool, type DynamicEnabled, type EdgeConfigSchema, type LstStakingVaultItem, type MixedBannerItem, type StandardBannerItem, type TokenItem, type VaultItem, isFlagEnabled, safeGetAll, safeGetConfig };