@fluent.xyz/connect 0.4.0 → 0.4.2

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.ts CHANGED
@@ -925,8 +925,8 @@ declare const fluentTestnetTokenDefaults: {
925
925
  readonly chainId: 20994;
926
926
  readonly symbol: "USDnr";
927
927
  readonly name: "USDnr";
928
- readonly decimals: 18;
929
- readonly address: "0x092AE7564C6611a114C20C6df766B5B35A52334A";
928
+ readonly decimals: 6;
929
+ readonly address: "0x279a6DC6354374473f6f3CFB3999e6C2e146f8a1";
930
930
  readonly gasPriority: 2;
931
931
  };
932
932
  readonly BLEND: {
@@ -977,8 +977,8 @@ declare function getFluentTokenDefaultsForNetwork(network: FluentNetworkName): {
977
977
  readonly chainId: 20994;
978
978
  readonly symbol: "USDnr";
979
979
  readonly name: "USDnr";
980
- readonly decimals: 18;
981
- readonly address: "0x092AE7564C6611a114C20C6df766B5B35A52334A";
980
+ readonly decimals: 6;
981
+ readonly address: "0x279a6DC6354374473f6f3CFB3999e6C2e146f8a1";
982
982
  readonly gasPriority: 2;
983
983
  };
984
984
  readonly BLEND: {
@@ -1207,8 +1207,8 @@ declare function getFluentTokenDefaults(network: FluentWidgetNetwork): {
1207
1207
  readonly chainId: 20994;
1208
1208
  readonly symbol: "USDnr";
1209
1209
  readonly name: "USDnr";
1210
- readonly decimals: 18;
1211
- readonly address: "0x092AE7564C6611a114C20C6df766B5B35A52334A";
1210
+ readonly decimals: 6;
1211
+ readonly address: "0x279a6DC6354374473f6f3CFB3999e6C2e146f8a1";
1212
1212
  readonly gasPriority: 2;
1213
1213
  };
1214
1214
  readonly BLEND: {
@@ -1314,6 +1314,24 @@ declare function getFluentGasPaymentEthValue(params: {
1314
1314
  formatted: string;
1315
1315
  tier: FluentGasPaymentValueTier;
1316
1316
  };
1317
+ /**
1318
+ * ETH-value rates for `getFluentGasPaymentEthValue`, derived from the USD prices
1319
+ * the widget already holds rather than from configuration.
1320
+ *
1321
+ * `gasPayment.ethValueByToken` is the App's to set and almost no App sets it,
1322
+ * which left every "is this balance too small to pay a fee" question
1323
+ * unanswerable for anything but ETH. The prices are per Token identity and the
1324
+ * rates are per symbol, because that is what the two sides are keyed by.
1325
+ * Anything the App did configure still wins: it is a deliberate override of
1326
+ * exactly this guess.
1327
+ */
1328
+ declare function deriveFluentGasEthRates(params: {
1329
+ tokens: readonly (FluentTokenDefinition & {
1330
+ identity: string;
1331
+ })[];
1332
+ usdPrices: Readonly<Record<string, number>>;
1333
+ configured?: FluentGasPaymentEthRates;
1334
+ }): FluentGasPaymentEthRates;
1317
1335
  declare function getFluentGasPaymentValueTier(ethValueWei: bigint): FluentGasPaymentValueTier;
1318
1336
 
1319
1337
  declare const FLUENT_WIDGET_SESSION_STORAGE_KEY = "fluent:widget:session:v1";
@@ -1363,6 +1381,11 @@ type FluentWidgetSession = FluentSession & {
1363
1381
  metadata?: Record<string, string>;
1364
1382
  };
1365
1383
  type FluentWidgetAuthMode = "hosted" | "direct";
1384
+ /**
1385
+ * A sign-in method the inline (`authMode: "direct"`) dialog can offer beside X.
1386
+ * X is not on this list: it is always offered and cannot be switched off.
1387
+ */
1388
+ type FluentWidgetAuthMethod = "google" | "email" | "passkey";
1366
1389
  type FluentWidgetConfig = {
1367
1390
  /** The App's id (`app_<32 hex>`) — the same string the Fluent Dashboard shows and the token's `aud` carries. */
1368
1391
  appId: string;
@@ -1384,6 +1407,23 @@ type FluentWidgetConfig = {
1384
1407
  * to be registered in the Fluent Privy Allowed Origins.
1385
1408
  */
1386
1409
  authMode?: FluentWidgetAuthMode;
1410
+ /**
1411
+ * HTTPS callback for the widget's Privy OAuth flows. Capacitor apps must use a
1412
+ * Universal Link registered in Privy and handle its return in the host app.
1413
+ * Omit to keep Privy's current-page redirect. The hosted authorize popup owns
1414
+ * its own redirect and is not configured by this option.
1415
+ */
1416
+ customOAuthRedirectUrl?: string;
1417
+ /**
1418
+ * Sign-in methods the inline (`authMode: "direct"`) dialog offers beside X, in the
1419
+ * order given. Defaults to `["google", "email", "passkey"]` — all of them; name a
1420
+ * shorter set to drop the rest, or `[]` to leave X as the only Fluent method.
1421
+ * Sign-in with X is always offered and is not a value here.
1422
+ *
1423
+ * A method still has to be enabled on the shared Privy app — listing it here only
1424
+ * decides whether its button is drawn.
1425
+ */
1426
+ enabledAuthMethods?: FluentWidgetAuthMethod[];
1387
1427
  swapper?: {
1388
1428
  enabled?: boolean;
1389
1429
  integratorId?: string;
@@ -1408,7 +1448,7 @@ type FluentWidgetConfig = {
1408
1448
  campaign?: string;
1409
1449
  /** Turns off all analytics: PostHog is never initialised, nothing is sent or stored. */
1410
1450
  disableAnalytics?: boolean;
1411
- /** Restore external wallets on load. Off by default: some connectors open an interactive prompt. */
1451
+ /** Restore injected wallets and WalletConnect by default; true restores all, false restores none. */
1412
1452
  reconnectOnMount?: boolean;
1413
1453
  /**
1414
1454
  * Point the widget at a sponsorship service other than the network default. Local
@@ -1443,6 +1483,9 @@ type ResolvedFluentWidgetConfig = {
1443
1483
  network: FluentWidgetNetwork;
1444
1484
  appName: string;
1445
1485
  authMode: FluentWidgetAuthMode;
1486
+ customOAuthRedirectUrl: string | undefined;
1487
+ /** What the dialog shows beside X, defaults applied. */
1488
+ authMethods: FluentWidgetAuthMethod[];
1446
1489
  authorizeUrl: string;
1447
1490
  faucetEndpoint: string;
1448
1491
  eventsEndpoint: string;
@@ -1450,7 +1493,7 @@ type ResolvedFluentWidgetConfig = {
1450
1493
  sponsorshipUrl: string;
1451
1494
  authTokenRenewalOffsetSeconds: number;
1452
1495
  disableAnalytics: boolean;
1453
- reconnectOnMount: boolean;
1496
+ reconnectOnMount: boolean | undefined;
1454
1497
  publicApiUrl: string;
1455
1498
  reputationSignupUrl: string;
1456
1499
  bridgeUrl: string;
@@ -1593,7 +1636,7 @@ declare function useFluentZeroDevAccount(hookOptions?: {
1593
1636
  data?: Hex;
1594
1637
  value?: bigint;
1595
1638
  }) => Promise<Hash>;
1596
- sendCalls: (calls: FluentZeroDevCall[], options?: FluentBatchOperationExecuteOptions) => Promise<{
1639
+ sendCalls: (calls: FluentZeroDevCall[], options?: FluentBatchOperationExecuteOptions, readyAccount?: unknown) => Promise<{
1597
1640
  hash: Hash;
1598
1641
  receipt: TransactionReceipt;
1599
1642
  userOpHash: Hash;
@@ -1612,7 +1655,7 @@ declare function createFluentZeroDevPermissionSession(params: {
1612
1655
  /**
1613
1656
  * Runs `sign` with the Privy prompt worded for a plain signature rather than a
1614
1657
  * UserOperation. The prompt kernel's signer reads a module-level context because
1615
- * Privy's `uiOptions` are fixed when the signer is built, not per call.
1658
+ * the signer is built once per mode, while the wording is per call.
1616
1659
  */
1617
1660
  declare function withFluentSignaturePrompt<T>(sign: () => Promise<T>): Promise<T>;
1618
1661
 
@@ -1708,6 +1751,20 @@ type FluentSignApi = {
1708
1751
  signTypedData: <const typedData extends TypedData | Record<string, unknown>, primaryType extends keyof typedData | "EIP712Domain" = keyof typedData>(typedData: TypedDataDefinition<typedData, primaryType>) => Promise<Hex>;
1709
1752
  };
1710
1753
 
1754
+ /** Execution gas policy for a smart-account batch. Other UserOperation gas fields remain estimated. */
1755
+ type FluentUserOperationGas = {
1756
+ callGasLimit: bigint;
1757
+ callGasBuffer?: never;
1758
+ } | {
1759
+ callGasLimit?: never;
1760
+ callGasBuffer: {
1761
+ /** Extra percent of the bundler estimate, rounded up. Must be a nonnegative safe integer. */
1762
+ percentage?: number;
1763
+ /** Extra gas added after the percentage buffer. Must be nonnegative. */
1764
+ fixed?: bigint;
1765
+ };
1766
+ };
1767
+
1711
1768
  type FluentBatchCallInput = {
1712
1769
  id?: string;
1713
1770
  label?: string;
@@ -1805,7 +1862,18 @@ type FluentBatchOperationExecutor = {
1805
1862
  /** Native-gas policy inherited from widget config; each execution may override it. */
1806
1863
  defaultSponsorship?: "auto" | "never";
1807
1864
  confirm?: (operation: FluentBatchOperationReview) => Promise<void>;
1808
- sendCalls: (calls: FluentEncodedBatchCall[], options: FluentBatchOperationExecuteOptions) => Promise<FluentExecuteResult>;
1865
+ /**
1866
+ * `readyAccount` is whatever `ensureReady` resolved with for this execution, and is
1867
+ * `undefined` when the executor was already ready and `ensureReady` never ran.
1868
+ *
1869
+ * It is passed because an executor assembled inside a React render — which is every
1870
+ * executor the widget builds — closes over the readiness state of that render, and
1871
+ * `ensureReady` resolving does not re-render it: in the tick after the account becomes
1872
+ * ready, `sendCalls` still sees "not ready" and has no way to reach the account that
1873
+ * now exists. This argument is that way. An executor whose readiness is not captured in
1874
+ * a closure can ignore it.
1875
+ */
1876
+ sendCalls: (calls: FluentEncodedBatchCall[], options: FluentBatchOperationExecuteOptions, readyAccount?: unknown) => Promise<FluentExecuteResult>;
1809
1877
  };
1810
1878
  type FluentBatchConfirmationMode = "always" | "session";
1811
1879
  type FluentGasPayment = {
@@ -1840,6 +1908,8 @@ type FluentGasPayment = {
1840
1908
  type FluentBatchOperationExecuteOptions = {
1841
1909
  confirmation?: FluentBatchConfirmationMode;
1842
1910
  gasPayment?: FluentGasPayment;
1911
+ /** Smart-account execution gas override or headroom. Ignored for external EOA transactions. */
1912
+ userOperationGas?: FluentUserOperationGas;
1843
1913
  };
1844
1914
  type FluentBatchOperationReview = {
1845
1915
  id?: string;
@@ -1907,6 +1977,39 @@ type FluentExternalWalletState = {
1907
1977
  */
1908
1978
  type FluentWidgetStatus = "restoring" | "connecting" | "connected" | "disconnected";
1909
1979
 
1980
+ type FluentAuthErrorCode = "unknown_app" | "app_not_auth_enabled" | "origin_not_allowed" | "origin_missing" | "bad_request" | "nonce_unknown" | "nonce_used" | "nonce_expired" | "app_mismatch" | "invalid_signature" | "signature_prefix_rejected" | "address_already_linked" | "invalid_privy_token" | "no_embedded_wallet" | "invalid_refresh_token" | "refresh_token_reused" | "rate_limited" | "internal" | "hosted_not_supported" | "not_connected" | "root_signer_required" | "privy_token_missing" | "origin_mismatch" | "request_failed" | "not_authenticated" | "user_rejected" | "linked_to_another_user" | "link_failed";
1981
+ declare class FluentAuthError extends Error {
1982
+ readonly code: FluentAuthErrorCode;
1983
+ readonly status?: number | undefined;
1984
+ constructor(code: FluentAuthErrorCode, message: string, status?: number | undefined);
1985
+ }
1986
+
1987
+ /** One X account as the Fluent auth service reports it. */
1988
+ type FluentXAccount = {
1989
+ id: string;
1990
+ handle: string;
1991
+ avatarUrl: string;
1992
+ };
1993
+ /**
1994
+ * The wire body of `GET /api/v1/me/profile` and of `POST /api/v1/me/identity/privy`.
1995
+ *
1996
+ * `x` is required and nullable: the route always says something about the X account, and `null`
1997
+ * is that answer — this user has none linked. A body without the key at all is not this route's.
1998
+ */
1999
+ type FluentProfile = {
2000
+ subject: string;
2001
+ appId: string;
2002
+ x: FluentXAccount | null;
2003
+ };
2004
+ type FluentLinkXResult = {
2005
+ status: "linked";
2006
+ x: FluentXAccount;
2007
+ }
2008
+ /** The page is leaving for X. Call linkX() again after the return; useLinkX() does it on mount. */
2009
+ | {
2010
+ status: "redirecting";
2011
+ };
2012
+
1910
2013
  type FluentWidgetRenderContext = {
1911
2014
  session: FluentWidgetSession | null;
1912
2015
  connectedAddress?: string;
@@ -1964,6 +2067,38 @@ type FluentWidgetRenderContext = {
1964
2067
  * smart account cannot (no ERC-6492).
1965
2068
  */
1966
2069
  getAuthToken: () => Promise<string>;
2070
+ /**
2071
+ * Link an X account to the connected Fluent ID, headless: no widget screen, no settings page,
2072
+ * one call. Idempotent and re-enterable, because linking X needs an OAuth round trip that
2073
+ * leaves the page and Privy offers no other primitive for it.
2074
+ *
2075
+ * A user who already has X resolves `{ status: "linked", x }` with no dialog and without
2076
+ * leaving: the SDK sends the one `POST /api/v1/me/identity/privy` the service needs and
2077
+ * returns the account from its answer. A user who has none resolves `{ status: "redirecting" }`
2078
+ * once the navigation to X has been started: the code after the `await` does run, briefly —
2079
+ * enough to show a "taking you to X" state — but the page is unloading, so nothing on it may
2080
+ * wait for the link to finish. When the browser comes back, call `linkX()` again — `useLinkX()`
2081
+ * does it for you on mount — and it resolves `linked`, having waited for Privy to restore the
2082
+ * user and seen the X account on it. Calling it again when the user already has X costs one
2083
+ * request and changes nothing, which is what makes it safe to call on every mount.
2084
+ *
2085
+ * A link somebody else started in this tab, or a stale record of one, is discarded rather
2086
+ * than resumed: the call does no work and rejects with `link_failed`; call again to start one
2087
+ * for the signed-in user.
2088
+ *
2089
+ * An external wallet is first signed in to Privy with SIWE — one signature prompt, never a
2090
+ * transaction — and then takes the same path; a repeat call with that session live signs
2091
+ * nothing again. The connected account, its kind and the wallet's Fluent token are unchanged
2092
+ * by it.
2093
+ *
2094
+ * Rejects with `FluentAuthError`: `user_rejected` (the user said no at X, or declined the
2095
+ * SIWE signature), `linked_to_another_user` (that X account belongs to another Fluent user),
2096
+ * `not_authenticated` (no Fluent ID or external wallet connected), `bad_request`,
2097
+ * `link_failed` (everything else) and `hosted_not_supported` (hosted mode, refused before any
2098
+ * other call). No other code reaches the caller: a refusal from under the call keeps its
2099
+ * message under `link_failed`.
2100
+ */
2101
+ linkX: () => Promise<FluentLinkXResult>;
1967
2102
  /** The resolved auth mode: `"hosted"` unless the config says `"direct"`. */
1968
2103
  authMode: FluentWidgetAuthMode;
1969
2104
  };
@@ -2153,12 +2288,185 @@ declare function createFluentBackendUserTokenStore(params: {
2153
2288
  onRemoveError?: (message: string) => void;
2154
2289
  }): BackendUserTokenStore;
2155
2290
 
2156
- type FluentAuthErrorCode = "unknown_app" | "app_not_auth_enabled" | "origin_not_allowed" | "origin_missing" | "bad_request" | "nonce_unknown" | "nonce_used" | "nonce_expired" | "app_mismatch" | "invalid_signature" | "signature_prefix_rejected" | "address_already_linked" | "invalid_privy_token" | "no_embedded_wallet" | "invalid_refresh_token" | "refresh_token_reused" | "rate_limited" | "internal" | "hosted_not_supported" | "not_connected" | "root_signer_required" | "privy_token_missing" | "origin_mismatch" | "request_failed";
2157
- declare class FluentAuthError extends Error {
2158
- readonly code: FluentAuthErrorCode;
2159
- readonly status?: number | undefined;
2160
- constructor(code: FluentAuthErrorCode, message: string, status?: number | undefined);
2291
+ type UseLinkXStatus = "idle" | "pending" | "redirecting" | "linked" | "error";
2292
+ /**
2293
+ * Linking X as a component sees it: the call, and what the last one did.
2294
+ *
2295
+ * `redirecting` is the status a page is unlikely to render for long — it is set just before the
2296
+ * browser leaves for X — and `linked` after a return is what the mount-time re-entry produces
2297
+ * without the component asking for anything.
2298
+ */
2299
+ declare function useLinkX(): {
2300
+ linkX: () => Promise<FluentLinkXResult>;
2301
+ status: UseLinkXStatus;
2302
+ x: FluentXAccount | null;
2303
+ error: FluentAuthError | null;
2304
+ };
2305
+
2306
+ type FluentTokenTransferRequest = {
2307
+ token: FluentDisplayToken;
2308
+ to: Address;
2309
+ /** In the token's base units, already checked against the balance. */
2310
+ amount: bigint;
2311
+ /**
2312
+ * What the fee is charged in, for this one transfer. Overrides the gas token
2313
+ * stored in User settings without changing it: a withdrawal is exactly the
2314
+ * moment the usual choice may be the wrong one.
2315
+ */
2316
+ gasSymbol: FluentGasTokenSymbol;
2317
+ };
2318
+ type FluentTokenTransferOutcome = {
2319
+ status: "sent";
2320
+ hash: Hash;
2161
2321
  }
2322
+ /** The user dismissed the review. Not a failure, and nothing to report. */
2323
+ | {
2324
+ status: "rejected";
2325
+ } | {
2326
+ status: "failed";
2327
+ message: string;
2328
+ };
2329
+ /**
2330
+ * A transfer the widget has sent and is still waiting on. It has no hash yet —
2331
+ * `execute` resolves with one only after the receipt — so it cannot be a
2332
+ * `FluentTransactionHistoryEntry`, every one of which describes something
2333
+ * already mined. Activity lists these above the mined rows until the real one
2334
+ * takes over.
2335
+ */
2336
+ type FluentPendingTransfer = {
2337
+ id: string;
2338
+ /** `fluentTokenIdentity` of the token, so the row it fills in prices and filters like any other. */
2339
+ tokenIdentity: string;
2340
+ symbol: string;
2341
+ /** Decimal, unsigned: a pending transfer is always outgoing. */
2342
+ amount: string;
2343
+ to: Address;
2344
+ /** Unix milliseconds, so it sorts into the list beside the mined rows. */
2345
+ startedAt: number;
2346
+ /**
2347
+ * Set once the transfer settles. The row stays until the history has caught
2348
+ * up and lists this hash: FluentScan indexes a little behind the receipt, so
2349
+ * dropping the row the moment `execute` resolves makes the transfer vanish
2350
+ * from the list for as long as the next refetch takes.
2351
+ */
2352
+ hash?: Hash;
2353
+ /**
2354
+ * The stand-in row has given up waiting for the history to list this hash.
2355
+ * The details stay: the history may yet list the operation before the
2356
+ * transfer it carried, and they are what fills that row in.
2357
+ */
2358
+ expired?: boolean;
2359
+ };
2360
+ /** What the wallet menu hands a form to actually move the money. */
2361
+ type FluentTokenTransferSender = (request: FluentTokenTransferRequest) => Promise<FluentTokenTransferOutcome>;
2362
+ declare const fluentTransferAbi: readonly [{
2363
+ readonly name: "transfer";
2364
+ readonly type: "function";
2365
+ readonly stateMutability: "nonpayable";
2366
+ readonly inputs: readonly [{
2367
+ readonly type: "address";
2368
+ readonly name: "to";
2369
+ }, {
2370
+ readonly type: "uint256";
2371
+ readonly name: "amount";
2372
+ }];
2373
+ readonly outputs: readonly [{
2374
+ readonly type: "bool";
2375
+ }];
2376
+ }];
2377
+ type FluentTransferRecipient = {
2378
+ status: "ok";
2379
+ address: Address;
2380
+ } | {
2381
+ status: "empty";
2382
+ } | {
2383
+ status: "rejected";
2384
+ message: string;
2385
+ };
2386
+ /**
2387
+ * The address a transfer would pay. Rejected rather than merely unparsed for
2388
+ * the two destinations that look valid and still lose the money: the sending
2389
+ * account itself, and a token's own contract.
2390
+ */
2391
+ declare function parseFluentTransferRecipient(params: {
2392
+ input: string;
2393
+ /** The account the funds leave, which can never be where they arrive. */
2394
+ self?: string;
2395
+ /** Contract addresses of the listed tokens, lowercased. */
2396
+ contracts?: ReadonlySet<string>;
2397
+ }): FluentTransferRecipient;
2398
+ type FluentTransferAmount = {
2399
+ status: "ok";
2400
+ raw: bigint;
2401
+ } | {
2402
+ status: "empty";
2403
+ } | {
2404
+ status: "rejected";
2405
+ message: string;
2406
+ };
2407
+ /**
2408
+ * The amount a transfer would move, in the token's own base units.
2409
+ *
2410
+ * `balance` is required and not nullable on purpose: every answer here is
2411
+ * checked against it, so a caller whose balance has not arrived yet has nothing
2412
+ * to validate against and must wait rather than pass a stand-in.
2413
+ */
2414
+ declare function parseFluentTransferAmount(params: {
2415
+ input: string;
2416
+ symbol: string;
2417
+ decimals: number;
2418
+ balance: bigint;
2419
+ }): FluentTransferAmount;
2420
+ type FluentTransferFee = {
2421
+ status: "ok";
2422
+ }
2423
+ /** Worth saying, but the send may still succeed. */
2424
+ | {
2425
+ status: "warning";
2426
+ message: string;
2427
+ }
2428
+ /** This send cannot pay its fee. Nothing to do but change something first. */
2429
+ | {
2430
+ status: "blocked";
2431
+ message: string;
2432
+ };
2433
+ /**
2434
+ * Whether the account can pay for this transfer's fee.
2435
+ *
2436
+ * Not a gas estimate — nothing here knows what the operation will cost. It
2437
+ * answers the one question that needs no estimate to answer: whether there is
2438
+ * any of the fee token at all. A send that empties the fee token's own balance
2439
+ * is left to the review and the chain, as any other operation is.
2440
+ *
2441
+ * "Blocked" and "warning" are the same facts under different gas paths.
2442
+ * Sponsorship covers native gas only — an ERC-20 fee is charged by that token's
2443
+ * own paymaster, which the App's paymaster never stands in for — so an empty
2444
+ * balance is certain failure there and merely likely failure on the native
2445
+ * path of a sponsoring App.
2446
+ */
2447
+ declare function checkFluentTransferFee(params: {
2448
+ /** The token the fee will be charged in, already resolved for this account. */
2449
+ feeToken: FluentDisplayToken;
2450
+ /** Its balance, or null while it is unread. */
2451
+ feeBalance: bigint | null;
2452
+ /**
2453
+ * Roughly what that balance is worth in wei, where the App configured
2454
+ * `gasPayment.ethValueByToken`. Without rates there is no way to call a
2455
+ * non-zero balance too small, and this stays undefined.
2456
+ */
2457
+ feeBalanceEthValue?: bigint | null;
2458
+ /** True where the App's paymaster may cover a native-gas operation. */
2459
+ sponsorshipAvailable: boolean;
2460
+ }): FluentTransferFee;
2461
+ /**
2462
+ * The one call that moves `amount` of `token` to `to`: a plain value send for
2463
+ * the chain's own currency, an ERC-20 `transfer` for everything else.
2464
+ */
2465
+ declare function buildFluentTransferCall(params: {
2466
+ token: Pick<FluentTokenDefinition, "address" | "symbol" | "native">;
2467
+ to: Address;
2468
+ amount: bigint;
2469
+ }): FluentBatchCallInput;
2162
2470
 
2163
2471
  /** One JSON-RPC request as the embedded page sends it: method plus positional params. */
2164
2472
  type FluentIframeRpcRequest = {
@@ -2448,6 +2756,12 @@ interface FluentAccountDrawerProps {
2448
2756
  */
2449
2757
  subPageTitle?: string | null;
2450
2758
  onCloseSubPage?: () => void;
2759
+ /**
2760
+ * How the sub-page is left: `back` is a chevron on the left that walks up the
2761
+ * stack; `close` is an X on the right, for a page that stands alone, such as
2762
+ * a review the user is answering.
2763
+ */
2764
+ subPageDismiss?: "back" | "close";
2451
2765
  /** @deprecated Pass `subPageTitle="Settings"` and `onCloseSubPage` instead. */
2452
2766
  settingsOpen?: boolean;
2453
2767
  /** @deprecated Renamed to `onCloseSubPage`. */
@@ -2466,7 +2780,7 @@ interface FluentAccountDrawerProps {
2466
2780
  * disconnect), and a slot (`children`) for the wallet menu card. Rendered
2467
2781
  * whenever the widget has a connected account.
2468
2782
  */
2469
- declare function FluentAccountDrawer({ accountOpen, setAccountOpen, hasConnectedAccount, isMobile, connectButton, accountMenuAddress, onAccountMenuAction, subPageTitle, onCloseSubPage, settingsOpen, onCloseSettings, modal, disablePointerDismissal, children, userLogoUrl, defaultLogoUrl, }: FluentAccountDrawerProps): React.JSX.Element;
2783
+ declare function FluentAccountDrawer({ accountOpen, setAccountOpen, hasConnectedAccount, isMobile, connectButton, accountMenuAddress, onAccountMenuAction, subPageTitle, onCloseSubPage, subPageDismiss, settingsOpen, onCloseSettings, modal, disablePointerDismissal, children, userLogoUrl, defaultLogoUrl, }: FluentAccountDrawerProps): React.JSX.Element;
2470
2784
 
2471
2785
  /** Colour scheme and design tokens for the widget's own UI — never around host content. */
2472
2786
  declare const WIDGET_STYLE_SCOPE = "fluent-root dark contents text-foreground";
@@ -2479,6 +2793,16 @@ declare const WIDGET_STYLE_SCOPE = "fluent-root dark contents text-foreground";
2479
2793
  * host mounting `<FluentWidget>` inside an element with `transform`, `filter` or
2480
2794
  * `contain` would turn that ancestor into their containing block and misplace
2481
2795
  * every one of them.
2796
+ *
2797
+ * Alongside it lives `dialog[data-fluent-top-layer]`, the host for the widget's
2798
+ * modal overlays. A host app that opens its own dialog with `showModal()` puts
2799
+ * it in the browser's top layer and makes the rest of the document inert — any
2800
+ * overlay we keep in the normal document is then covered and unclickable. Modal
2801
+ * overlays therefore portal into this `<dialog>`, and the first one to open
2802
+ * calls `showModal()` on it: it becomes the topmost modal, painted above the
2803
+ * host's dialog and exempt from its inertness. Elements in the top layer are
2804
+ * laid out against the viewport regardless of ancestors, so the `body`
2805
+ * constraint above is preserved for free.
2482
2806
  */
2483
2807
  declare function FluentPortalContainerProvider({ children }: {
2484
2808
  children: ReactNode;
@@ -2494,6 +2818,31 @@ type FluentAnalyticsTrack = {
2494
2818
  live?: boolean;
2495
2819
  };
2496
2820
 
2821
+ type FluentUsdnrMintOutcome = {
2822
+ status: "minted";
2823
+ hash: Hash;
2824
+ }
2825
+ /** The person dismissed the review. Not a failure, and nothing to report. */
2826
+ | {
2827
+ status: "rejected";
2828
+ } | {
2829
+ status: "failed";
2830
+ message: string;
2831
+ }
2832
+ /**
2833
+ * The press built nothing, because a mint was already in flight. Its own
2834
+ * status rather than a silent `undefined`: a caller counting operations — the
2835
+ * double-press this guards against — needs to see that one was refused.
2836
+ */
2837
+ | {
2838
+ status: "skipped";
2839
+ };
2840
+ /**
2841
+ * What the wallet menu's Get USDnr button runs on testnet. The widget hands one
2842
+ * in; the card holds no execution of its own.
2843
+ */
2844
+ type FluentUsdnrMinter = (recipient: Address) => Promise<FluentUsdnrMintOutcome>;
2845
+
2497
2846
  interface WalletMenuActionCardProps {
2498
2847
  track: FluentAnalyticsTrack;
2499
2848
  session: FluentWidgetSession | null;
@@ -2510,8 +2859,27 @@ interface WalletMenuActionCardProps {
2510
2859
  onConnectWithX: () => void;
2511
2860
  tab: string;
2512
2861
  onTabChange: (tab: string) => void;
2862
+ /**
2863
+ * Which Home panel is showing, "tokens" or "activity". Optional, and only
2864
+ * because the preview harnesses render this card outside a drawer; the widget
2865
+ * must pass it, or a panel opened for a settled transfer dies with the card
2866
+ * the review modal unmounted.
2867
+ */
2868
+ panel?: string;
2869
+ onPanelChange?: (panel: string) => void;
2513
2870
  /** The connected account address shown in the header (external EOA or Fluent smart account). */
2514
2871
  connectedAddress?: string;
2872
+ /**
2873
+ * Which account this menu is for. An External wallet (`"eoa"`) confirms every
2874
+ * call in the wallet itself and pays the chain's own gas, so it has neither
2875
+ * Quick sign nor a Gas token to choose and no Fluent smart account to claim a
2876
+ * faucet for; Settings shows both preferences disabled, hides Faucet and
2877
+ * sends Explorer to the EOA's own address.
2878
+ *
2879
+ * Optional, and absent reads as a Fluent ID: this card is exported
2880
+ * (`src/index.ts`), and the preview harnesses mount it with no account at all.
2881
+ */
2882
+ accountKind?: FluentAccountType;
2515
2883
  /** The External wallet that signs bridge deposits, while one is connected. */
2516
2884
  externalWalletAddress?: string;
2517
2885
  /** Bumped after a confirmed widget transaction so balances refetch. */
@@ -2531,8 +2899,52 @@ interface WalletMenuActionCardProps {
2531
2899
  settingsError?: string | null;
2532
2900
  /** A token write the service refused. */
2533
2901
  tokenListError?: string | null;
2902
+ /**
2903
+ * Moves a token out of this account. Absent where nothing can execute — the
2904
+ * preview harnesses render the card outside the widget — and the Send button
2905
+ * is then disabled rather than hidden.
2906
+ */
2907
+ onSendToken?: FluentTokenTransferSender;
2908
+ /** Transfers sent from here that have not settled yet, listed in Activity. */
2909
+ pendingTransfers?: readonly FluentPendingTransfer[];
2910
+ /**
2911
+ * Mints testnet USDnr into this account. On a faucet network Get USDnr runs
2912
+ * this instead of opening the Swapper Finance on-ramp, which has nothing to
2913
+ * sell on a testnet, and the USDnr contract there mints to whoever asks.
2914
+ *
2915
+ * Absent where nothing can execute — the preview harnesses render this card
2916
+ * outside the widget — and Get USDnr then opens the on-ramp on both networks,
2917
+ * under the on-ramp's own rule.
2918
+ */
2919
+ onMintUsdnr?: FluentUsdnrMinter;
2920
+ /**
2921
+ * True while a mint is in flight, and the one thing that disables Get USDnr
2922
+ * on the mint path. An address that has not arrived yet does not: a press
2923
+ * reports it in the status line, the way Send does, which says more than a
2924
+ * button nothing explains. Held by the widget rather than here, because the
2925
+ * review modal closes the drawer and unmounts this card mid-mint.
2926
+ */
2927
+ mintUsdnrBusy?: boolean;
2928
+ /**
2929
+ * Brings the account drawer back up. A transaction review closes it on its
2930
+ * way in, so without this a transfer that settles has nowhere to report
2931
+ * itself. Absent in the preview harnesses, which render the card with no
2932
+ * drawer around it.
2933
+ */
2934
+ onRevealAccount?: () => void;
2935
+ /**
2936
+ * What pays a transfer's fee, for the Send page's fee selector and warnings.
2937
+ * Defaults describe the Fluent smart account with no sponsorship, which is
2938
+ * the conservative reading: it warns where a sponsoring App would not need to.
2939
+ */
2940
+ gasContext?: {
2941
+ /** False for an external wallet, which has no paymaster to charge a token. */
2942
+ erc20Gas: boolean;
2943
+ /** True where the App's paymaster may cover a native-gas operation. */
2944
+ sponsorshipAvailable: boolean;
2945
+ };
2534
2946
  }
2535
- declare function WalletMenuActionCard({ track, session, smartAccountAddress, faucetBusy, onFaucet, config, tokens, gasPaymentToken, onGasPaymentTokenChange, silentSigningEnabled, onSilentSigningChange, onDisconnect, onConnectWithX, tab, onTabChange, connectedAddress, externalWalletAddress, balanceRevisionCounter, userTokenStore, settingsPending, settingsError, tokenListError, }: WalletMenuActionCardProps): React.JSX.Element | null;
2947
+ declare function WalletMenuActionCard({ track, session, smartAccountAddress, faucetBusy, onFaucet, config, tokens, gasPaymentToken, onGasPaymentTokenChange, silentSigningEnabled, onSilentSigningChange, onDisconnect, onConnectWithX, tab, onTabChange, panel, onPanelChange, connectedAddress, accountKind, externalWalletAddress, balanceRevisionCounter, userTokenStore, settingsPending, settingsError, tokenListError, onSendToken, pendingTransfers, onMintUsdnr, mintUsdnrBusy, onRevealAccount, gasContext, }: WalletMenuActionCardProps): React.JSX.Element | null;
2536
2948
 
2537
2949
  declare const buttonVariants: (props?: ({
2538
2950
  variant?: "default" | "link" | "outline" | "secondary" | "ghost" | "destructive" | null | undefined;
@@ -2549,7 +2961,7 @@ declare function Switch({ className, size, ...props }: Switch$1.Root.Props & {
2549
2961
 
2550
2962
  declare function Dialog({ ...props }: Dialog$1.Root.Props): React.JSX.Element;
2551
2963
  declare function DialogTrigger({ ...props }: Dialog$1.Trigger.Props): React.JSX.Element;
2552
- declare function DialogPortal({ container, ...props }: Dialog$1.Portal.Props): React.JSX.Element;
2964
+ declare function DialogPortal({ container, children, ...props }: Dialog$1.Portal.Props): React.JSX.Element;
2553
2965
  declare function DialogClose({ ...props }: Dialog$1.Close.Props): React.JSX.Element;
2554
2966
  declare function DialogOverlay({ className, ...props }: Dialog$1.Backdrop.Props): React.JSX.Element;
2555
2967
  declare function DialogContent({ className, children, showCloseButton, ...props }: Dialog$1.Popup.Props & {
@@ -2564,7 +2976,7 @@ declare function DialogDescription({ className, ...props }: Dialog$1.Description
2564
2976
 
2565
2977
  declare function Separator({ className, orientation, ...props }: Separator$1.Props): React.JSX.Element;
2566
2978
 
2567
- type IconName = "coinbase" | "walletConnect" | "metaMask" | "rabby" | "keplr" | "okx" | "fluent" | "x" | "google" | "arrow-right-s-line" | "arrow-left-right-line" | "arrow-up-s-fill" | "arrow-down-s-fill" | "plus" | "eth" | "usdnr" | "usdc" | "blend";
2979
+ type IconName = "coinbase" | "walletConnect" | "metaMask" | "rabby" | "keplr" | "okx" | "fluent" | "fluentLogomark" | "fluentLogotype" | "x" | "google" | "arrow-right-s-line" | "arrow-left-right-line" | "arrow-up-line" | "arrow-up-s-fill" | "arrow-down-s-fill" | "plus" | "eth" | "usdnr" | "usdc" | "blend";
2568
2980
  declare function Icon({ name, className, ...props }: {
2569
2981
  name: IconName;
2570
2982
  } & SVGProps<SVGSVGElement>): React.JSX.Element;
@@ -2583,4 +2995,4 @@ type AccountAvatarProps = {
2583
2995
  */
2584
2996
  declare function AccountAvatar({ userLogoUrl, defaultLogoUrl, className }: AccountAvatarProps): React.JSX.Element;
2585
2997
 
2586
- export { AccountAvatar, type AccountAvatarProps, type AppDefinition, type BackendUserTokenStore, type BridgeAddresses, Button, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, FLUENT_CONNECT_DEFAULT_ASSETS, FLUENT_GAS_PAYMENT_DEFAULT_ETH_RATES, FLUENT_USER_TOKEN_LIMIT, FLUENT_WIDGET_DEFAULT_GAS_TOKEN, FLUENT_WIDGET_SESSION_STORAGE_KEY, FLUENT_WIDGET_USER_TOKENS_IMPORT_MARKER_KEY, FLUENT_WIDGET_USER_TOKENS_STORAGE_KEY, FLUENT_ZERODEV_ERC20_PAYMASTER_QUERY, FLUENT_ZERODEV_PAYMASTER_DEMO_RECIPIENT, type FluentAccountCapabilities, FluentAccountDrawer, type FluentAccountType, FluentAuthError, type FluentAuthErrorCode, type FluentBatchApi, type FluentBatchCallInput, type FluentBatchConfirmationMode, type FluentBatchOperation, type FluentBatchOperationExecuteOptions, type FluentBatchOperationExecutor, type FluentBatchOperationInput, type FluentBatchOperationReview, type FluentCallPermission, type FluentChainDefinition, type FluentClient, type FluentClientConfig, type FluentEncodedBatchCall, type FluentExecuteResult, type FluentExternalWalletState, type FluentFamilies, type FluentFamiliesClient, type FluentFamiliesClientConfig, type FluentFamily, type FluentFamilyTier, type FluentFamilyType, type FluentGasPayment, type FluentGasPaymentEthRates, type FluentGasPaymentSelection, type FluentGasPaymentValueTier, type FluentGasTokenSymbol, type FluentIframeBridge, type FluentIframeBridgeOptions, type FluentIframeElement, FluentIframeRpcError, type FluentIframeRpcExecutor, type FluentIframeRpcHandler, type FluentIframeRpcRequest, type FluentPermissionApi, type FluentPermissionArgConstraint, type FluentPermissionArgs, type FluentPermissionBatchPolicy, type FluentPermissionBatchPolicyInput, type FluentPermissionCallInput, type FluentPermissionCallPolicy, type FluentPermissionClient, type FluentPermissionClientConfig, type FluentPermissionGrant, type FluentPermissionGrantRequest, type FluentPermissionPolicy, type FluentPermissionPolicyBuilders, type FluentPermissionPreview, type FluentPermissionSession, type FluentPermissionSessionExecutor, type FluentPermissionSessionInput, type FluentPermissionStatus, FluentPortalContainerProvider, FluentReviewRejectedError, type FluentSession, type FluentSettingsClient, FluentSettingsError, type FluentSettingsErrorCode, type FluentSignApi, type FluentSignatureReview, type FluentSpendPeriod, type FluentSpendPermission, FluentSponsorshipFallbackError, type FluentSponsorshipReason, type FluentTokenBalance, type FluentTokenDefinition, type FluentTypedDataRequest, type FluentUserSettings, type FluentUserSettingsPatch, type FluentUserTokenAddResult, type FluentWalletChoice, FluentWidget, type FluentWidgetAccount, type FluentWidgetAuthMode, type FluentWidgetConfig, FluentWidgetConnectButton, type FluentWidgetConnectButtonProps, type FluentWidgetConnectButtonRenderContext, type FluentWidgetExecutionStatus, type FluentWidgetGasPayment, type FluentWidgetNetwork, FluentWidgetNetworkProvider, type FluentWidgetProps, type FluentWidgetRenderContext, type FluentWidgetSession, type FluentWidgetStatus, type FluentZeroDevErc20PaymasterToken, type FluentZeroDevErc20PaymasterTokenInfo, type FluentZeroDevKernel, type FluentZeroDevPaymasterDemoResult, type FluentZeroDevPaymasterKernel, type FluentZeroDevPermissionCall, type FluentZeroDevPermissionSession, type FluentZeroDevSignerMode, type FluentZeroDevSponsorshipTokenSource, Icon, type IconName, type L1ChainDefinition, Label, type ResolvedFluentWidgetConfig, Separator, Switch, type UseFluentIframeBridgeOptions, type UserTokenStore, WIDGET_STYLE_SCOPE, WalletMenuActionCard, type ZerodevIntegration, buttonVariants, clearPrivyRecentLoginMethod, createFluentBackendUserTokenStore, createFluentBatchOp, createFluentClient, createFluentFamiliesClient, createFluentIframeBridge, createFluentIframeRpcHandler, createFluentPermissionApi, createFluentPermissionClient, createFluentPermissionPolicyBuilders, createFluentPermissionSession, createFluentSettingsClient, createFluentSponsorshipRpcUrl, createFluentUserTokenStore, createFluentZeroDevErc20Paymaster, createFluentZeroDevErc20PaymasterApprovalCall, createFluentZeroDevErc20PaymasterClient, createFluentZeroDevErc20PaymasterRpcUrl, createFluentZeroDevPermissionSession, createFluentZeroDevRpcUrl, createFluentZeroDevSponsoredPaymaster, findFluentSymbolCollisions, fluent, apps as fluentApps, fluentBridgeAbi, fluent$1 as fluentChain, fluentChains, fluentDefinitionToViemChain, integrations as fluentIntegrations, l1Chains as fluentL1Chains, fluentMainnet, fluentMainnetTokenDefaults, fluentTestnet, fluentTestnetTokenDefaults, fluentTokenIdentity, fluentZeroDevChainIds, getApp, getContractAddressFromChain, getFluentChain, getFluentChainByChainId, getFluentChainForNetwork, getFluentDefaultWidgetDisplayTokens, getFluentDefaultWidgetGasTokens, getFluentExplorerBaseUrl, getFluentGasPaymentEthValue, getFluentGasPaymentTokens, getFluentGasPaymentValueTier, getFluentGasTokenAddress, getFluentTokenDefaults, getFluentTokenDefaultsForNetwork, getFluentZeroDevErc20PaymasterTokens, getL1Chain, getL1ForFluentChain, getZeroDevRpcUrl, getZerodevIntegration, isFaucetNetwork, isFluentDefaultToken, isFluentNativeToken, isFluentZeroDevChain, l1DefinitionToViemChain, mergeFluentDisplayTokens, normalizeFluentWidgetNetwork, readFluentTokenBalances, readFluentTokenMetadata, registryVersion, resolveBridgeAddresses, resolveDefaultGasToken, resolveFluentWidgetNetworkFromEnv, resolveFluentZeroDevErc20PaymasterToken, resolveL1Definition, selectFluentGasPaymentToken, sendFluentZeroDevErc20PaymasterDemo, sortFluentGasTokens, useFluentIframeBridge, useFluentUserTokens, useFluentWidget, useFluentWidgetNetwork, useFluentZeroDevAccount, useWidget, withFluentSignaturePrompt };
2998
+ export { AccountAvatar, type AccountAvatarProps, type AppDefinition, type BackendUserTokenStore, type BridgeAddresses, Button, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, FLUENT_CONNECT_DEFAULT_ASSETS, FLUENT_GAS_PAYMENT_DEFAULT_ETH_RATES, FLUENT_USER_TOKEN_LIMIT, FLUENT_WIDGET_DEFAULT_GAS_TOKEN, FLUENT_WIDGET_SESSION_STORAGE_KEY, FLUENT_WIDGET_USER_TOKENS_IMPORT_MARKER_KEY, FLUENT_WIDGET_USER_TOKENS_STORAGE_KEY, FLUENT_ZERODEV_ERC20_PAYMASTER_QUERY, FLUENT_ZERODEV_PAYMASTER_DEMO_RECIPIENT, type FluentAccountCapabilities, FluentAccountDrawer, type FluentAccountType, FluentAuthError, type FluentAuthErrorCode, type FluentBatchApi, type FluentBatchCallInput, type FluentBatchConfirmationMode, type FluentBatchOperation, type FluentBatchOperationExecuteOptions, type FluentBatchOperationExecutor, type FluentBatchOperationInput, type FluentBatchOperationReview, type FluentCallPermission, type FluentChainDefinition, type FluentClient, type FluentClientConfig, type FluentEncodedBatchCall, type FluentExecuteResult, type FluentExternalWalletState, type FluentFamilies, type FluentFamiliesClient, type FluentFamiliesClientConfig, type FluentFamily, type FluentFamilyTier, type FluentFamilyType, type FluentGasPayment, type FluentGasPaymentEthRates, type FluentGasPaymentSelection, type FluentGasPaymentValueTier, type FluentGasTokenSymbol, type FluentIframeBridge, type FluentIframeBridgeOptions, type FluentIframeElement, FluentIframeRpcError, type FluentIframeRpcExecutor, type FluentIframeRpcHandler, type FluentIframeRpcRequest, type FluentLinkXResult, type FluentPermissionApi, type FluentPermissionArgConstraint, type FluentPermissionArgs, type FluentPermissionBatchPolicy, type FluentPermissionBatchPolicyInput, type FluentPermissionCallInput, type FluentPermissionCallPolicy, type FluentPermissionClient, type FluentPermissionClientConfig, type FluentPermissionGrant, type FluentPermissionGrantRequest, type FluentPermissionPolicy, type FluentPermissionPolicyBuilders, type FluentPermissionPreview, type FluentPermissionSession, type FluentPermissionSessionExecutor, type FluentPermissionSessionInput, type FluentPermissionStatus, FluentPortalContainerProvider, type FluentProfile, FluentReviewRejectedError, type FluentSession, type FluentSettingsClient, FluentSettingsError, type FluentSettingsErrorCode, type FluentSignApi, type FluentSignatureReview, type FluentSpendPeriod, type FluentSpendPermission, FluentSponsorshipFallbackError, type FluentSponsorshipReason, type FluentTokenBalance, type FluentTokenDefinition, type FluentTokenTransferOutcome, type FluentTokenTransferRequest, type FluentTokenTransferSender, type FluentTransferAmount, type FluentTransferFee, type FluentTransferRecipient, type FluentTypedDataRequest, type FluentUserOperationGas, type FluentUserSettings, type FluentUserSettingsPatch, type FluentUserTokenAddResult, type FluentWalletChoice, FluentWidget, type FluentWidgetAccount, type FluentWidgetAuthMethod, type FluentWidgetAuthMode, type FluentWidgetConfig, FluentWidgetConnectButton, type FluentWidgetConnectButtonProps, type FluentWidgetConnectButtonRenderContext, type FluentWidgetExecutionStatus, type FluentWidgetGasPayment, type FluentWidgetNetwork, FluentWidgetNetworkProvider, type FluentWidgetProps, type FluentWidgetRenderContext, type FluentWidgetSession, type FluentWidgetStatus, type FluentXAccount, type FluentZeroDevErc20PaymasterToken, type FluentZeroDevErc20PaymasterTokenInfo, type FluentZeroDevKernel, type FluentZeroDevPaymasterDemoResult, type FluentZeroDevPaymasterKernel, type FluentZeroDevPermissionCall, type FluentZeroDevPermissionSession, type FluentZeroDevSignerMode, type FluentZeroDevSponsorshipTokenSource, Icon, type IconName, type L1ChainDefinition, Label, type ResolvedFluentWidgetConfig, Separator, Switch, type UseFluentIframeBridgeOptions, type UserTokenStore, WIDGET_STYLE_SCOPE, WalletMenuActionCard, type ZerodevIntegration, buildFluentTransferCall, buttonVariants, checkFluentTransferFee, clearPrivyRecentLoginMethod, createFluentBackendUserTokenStore, createFluentBatchOp, createFluentClient, createFluentFamiliesClient, createFluentIframeBridge, createFluentIframeRpcHandler, createFluentPermissionApi, createFluentPermissionClient, createFluentPermissionPolicyBuilders, createFluentPermissionSession, createFluentSettingsClient, createFluentSponsorshipRpcUrl, createFluentUserTokenStore, createFluentZeroDevErc20Paymaster, createFluentZeroDevErc20PaymasterApprovalCall, createFluentZeroDevErc20PaymasterClient, createFluentZeroDevErc20PaymasterRpcUrl, createFluentZeroDevPermissionSession, createFluentZeroDevRpcUrl, createFluentZeroDevSponsoredPaymaster, deriveFluentGasEthRates, findFluentSymbolCollisions, fluent, apps as fluentApps, fluentBridgeAbi, fluent$1 as fluentChain, fluentChains, fluentDefinitionToViemChain, integrations as fluentIntegrations, l1Chains as fluentL1Chains, fluentMainnet, fluentMainnetTokenDefaults, fluentTestnet, fluentTestnetTokenDefaults, fluentTokenIdentity, fluentTransferAbi, fluentZeroDevChainIds, getApp, getContractAddressFromChain, getFluentChain, getFluentChainByChainId, getFluentChainForNetwork, getFluentDefaultWidgetDisplayTokens, getFluentDefaultWidgetGasTokens, getFluentExplorerBaseUrl, getFluentGasPaymentEthValue, getFluentGasPaymentTokens, getFluentGasPaymentValueTier, getFluentGasTokenAddress, getFluentTokenDefaults, getFluentTokenDefaultsForNetwork, getFluentZeroDevErc20PaymasterTokens, getL1Chain, getL1ForFluentChain, getZeroDevRpcUrl, getZerodevIntegration, isFaucetNetwork, isFluentDefaultToken, isFluentNativeToken, isFluentZeroDevChain, l1DefinitionToViemChain, mergeFluentDisplayTokens, normalizeFluentWidgetNetwork, parseFluentTransferAmount, parseFluentTransferRecipient, readFluentTokenBalances, readFluentTokenMetadata, registryVersion, resolveBridgeAddresses, resolveDefaultGasToken, resolveFluentWidgetNetworkFromEnv, resolveFluentZeroDevErc20PaymasterToken, resolveL1Definition, selectFluentGasPaymentToken, sendFluentZeroDevErc20PaymasterDemo, sortFluentGasTokens, useFluentIframeBridge, useFluentUserTokens, useFluentWidget, useFluentWidgetNetwork, useFluentZeroDevAccount, useLinkX, useWidget, withFluentSignaturePrompt };