@fluent.xyz/connect 0.4.2 → 0.5.1

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
@@ -2,7 +2,7 @@ import * as viem from 'viem';
2
2
  import { Chain, PublicClient, Transport, Address, createPublicClient, Hex, Abi, Hash, TransactionReceipt, SignableMessage, TypedData, TypedDataDefinition, WalletClient } from 'viem';
3
3
  import * as React from 'react';
4
4
  import { ReactNode, RefObject, AnchorHTMLAttributes, SVGProps } from 'react';
5
- import * as _privy_io_react_auth from '@privy-io/react-auth';
5
+ import * as web from '@privy-io/react-auth';
6
6
  import { CallType } from '@zerodev/permissions/policies';
7
7
  export { CallType, ParamCondition } from '@zerodev/permissions/policies';
8
8
  import * as _zerodev_sdk from '@zerodev/sdk';
@@ -1129,16 +1129,14 @@ type FluentInitializeConfig = {
1129
1129
  clientId?: string;
1130
1130
  /**
1131
1131
  * Optional display hint for anonymous/basic mode.
1132
- * Fluent-controlled hosted auth remains the source of truth for registered app metadata.
1132
+ * The Fluent Dashboard remains the source of truth for registered app metadata.
1133
1133
  */
1134
1134
  appName?: string;
1135
- authorizeUrl?: string;
1136
1135
  scopes?: string[];
1137
1136
  source?: string;
1138
1137
  campaign?: string;
1139
1138
  storage?: StorageLike;
1140
1139
  origin?: string;
1141
- redirectUri?: string;
1142
1140
  };
1143
1141
  type FluentAppIdentity = {
1144
1142
  mode: "origin" | "registered";
@@ -1166,20 +1164,13 @@ type FluentConnectionStatus = {
1166
1164
  app: FluentAppIdentity;
1167
1165
  session?: FluentSession;
1168
1166
  };
1169
- type FluentConnectOptions = {
1170
- popup?: WindowOpenLike;
1171
- state?: string;
1172
- };
1173
1167
  type StorageLike = Pick<Storage, "getItem" | "setItem" | "removeItem">;
1174
- type WindowOpenLike = (url?: string | URL, target?: string, features?: string) => unknown;
1175
1168
  declare class FluentConnectSDK {
1176
1169
  private config;
1177
1170
  private app;
1178
1171
  private session;
1179
1172
  constructor(config: FluentInitializeConfig);
1180
1173
  status(): FluentConnectionStatus;
1181
- buildAuthorizeUrl(state?: string): URL;
1182
- connect(options?: FluentConnectOptions): URL;
1183
1174
  setSession(session: Omit<FluentSession, "app"> & {
1184
1175
  app?: FluentAppIdentity;
1185
1176
  }): FluentSession;
@@ -1337,7 +1328,7 @@ declare function getFluentGasPaymentValueTier(ethValueWei: bigint): FluentGasPay
1337
1328
  declare const FLUENT_WIDGET_SESSION_STORAGE_KEY = "fluent:widget:session:v1";
1338
1329
  /**
1339
1330
  * Tokens the user added by hand, in the states where no Fluent token can exist:
1340
- * hosted mode with a Fluent ID, and the not-connected state. Everywhere
1331
+ * the not-connected state. Everywhere
1341
1332
  * `getAuthToken()` resolves, the service holds the list per person and this key
1342
1333
  * is not read (ADR 0004).
1343
1334
  *
@@ -1380,12 +1371,91 @@ type FluentWidgetSession = FluentSession & {
1380
1371
  expiresAt?: number;
1381
1372
  metadata?: Record<string, string>;
1382
1373
  };
1383
- type FluentWidgetAuthMode = "hosted" | "direct";
1384
1374
  /**
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.
1375
+ * A sign-in method the sign-in dialog can offer beside X. X is not on this list:
1376
+ * it is always offered and cannot be switched off.
1387
1377
  */
1388
1378
  type FluentWidgetAuthMethod = "google" | "email" | "passkey";
1379
+ /**
1380
+ * Which value in `FluentWidgetConfig` was refused, for a host that branches rather than reads
1381
+ * the message.
1382
+ */
1383
+ type FluentWidgetConfigErrorCode = "invalid_fee_source" | "invalid_receipt_source" | "invalid_chain_check_before_sign";
1384
+ /**
1385
+ * A value in `FluentWidgetConfig` the widget refuses to start with.
1386
+ *
1387
+ * Thrown by `resolveFluentWidgetConfig`, which every `<FluentWidget>` runs on its first
1388
+ * render, so it surfaces at startup where the integrator is looking rather than at the first
1389
+ * send. The message names the field and the values it accepts; `code` is what to branch on.
1390
+ *
1391
+ * @example
1392
+ * ```ts
1393
+ * try {
1394
+ * resolveFluentWidgetConfig(config);
1395
+ * } catch (error) {
1396
+ * if (error instanceof FluentWidgetConfigError && error.code === "invalid_fee_source") {
1397
+ * // fix execution.feeSource
1398
+ * }
1399
+ * }
1400
+ * ```
1401
+ */
1402
+ declare class FluentWidgetConfigError extends Error {
1403
+ readonly code: FluentWidgetConfigErrorCode;
1404
+ constructor(code: FluentWidgetConfigErrorCode, message: string);
1405
+ }
1406
+ /**
1407
+ * Where a smart-account send reads a value it could ask either side for: the widget chain's
1408
+ * own RPC, or the ZeroDev bundler.
1409
+ *
1410
+ * @experimental May change or be removed in a minor release while the defaults are measured;
1411
+ * the defaults are the recommended setting.
1412
+ */
1413
+ type FluentWidgetExecutionSource = "chain" | "bundler";
1414
+ /**
1415
+ * `FluentWidgetConfig.execution`, every field optional.
1416
+ *
1417
+ * @experimental May change or be removed in a minor release while the defaults are measured;
1418
+ * the defaults are the recommended setting.
1419
+ */
1420
+ type FluentWidgetExecution = {
1421
+ /**
1422
+ * Where the fees of a user operation come from. `chain` reads the widget chain's
1423
+ * `eth_gasPrice` and caps `maxFeePerGas` 10 % above it; `bundler` takes ZeroDev's
1424
+ * `zd_getUserOperationGasPrice` quote unchanged. Defaults to `chain`.
1425
+ *
1426
+ * @experimental May change or be removed in a minor release while the defaults are
1427
+ * measured; the defaults are the recommended setting.
1428
+ */
1429
+ feeSource?: FluentWidgetExecutionSource;
1430
+ /**
1431
+ * Where inclusion is read from. `chain` polls the EntryPoint's `UserOperationEvent` with
1432
+ * `eth_getLogs`; `bundler` polls `eth_getUserOperationReceipt`. Defaults to `chain`.
1433
+ *
1434
+ * @experimental May change or be removed in a minor release while the defaults are
1435
+ * measured; the defaults are the recommended setting.
1436
+ */
1437
+ receiptSource?: FluentWidgetExecutionSource;
1438
+ /**
1439
+ * Whether the Signer's chain is read before every signature. The widget gives Privy its own
1440
+ * chain as the only one, and the kernel checks the chain once when it is created, so the
1441
+ * repeat costs a provider round trip per signature and switches nothing. Defaults to `false`.
1442
+ *
1443
+ * @experimental May change or be removed in a minor release while the defaults are
1444
+ * measured; the defaults are the recommended setting.
1445
+ */
1446
+ chainCheckBeforeSign?: boolean;
1447
+ };
1448
+ /**
1449
+ * `FluentWidgetExecution` with its defaults applied.
1450
+ *
1451
+ * @experimental May change or be removed in a minor release while the defaults are measured;
1452
+ * the defaults are the recommended setting.
1453
+ */
1454
+ type ResolvedFluentWidgetExecution = {
1455
+ feeSource: FluentWidgetExecutionSource;
1456
+ receiptSource: FluentWidgetExecutionSource;
1457
+ chainCheckBeforeSign: boolean;
1458
+ };
1389
1459
  type FluentWidgetConfig = {
1390
1460
  /** The App's id (`app_<32 hex>`) — the same string the Fluent Dashboard shows and the token's `aud` carries. */
1391
1461
  appId: string;
@@ -1401,23 +1471,16 @@ type FluentWidgetConfig = {
1401
1471
  partnerId?: never;
1402
1472
  network?: FluentWidgetNetwork;
1403
1473
  appName?: string;
1404
- /**
1405
- * `hosted` opens Fluent authorize in a popup (default).
1406
- * `direct` opens Privy login modal in the host app — requires the host origin
1407
- * to be registered in the Fluent Privy Allowed Origins.
1408
- */
1409
- authMode?: FluentWidgetAuthMode;
1410
1474
  /**
1411
1475
  * HTTPS callback for the widget's Privy OAuth flows. Capacitor apps must use a
1412
1476
  * 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.
1477
+ * Omit to keep Privy's current-page redirect.
1415
1478
  */
1416
1479
  customOAuthRedirectUrl?: string;
1417
1480
  /**
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.
1481
+ * Sign-in methods the sign-in dialog offers beside X, in the order given.
1482
+ * Defaults to `["google", "email", "passkey"]` — all of them; name a shorter
1483
+ * set to drop the rest, or `[]` to leave X as the only Fluent method.
1421
1484
  * Sign-in with X is always offered and is not a value here.
1422
1485
  *
1423
1486
  * A method still has to be enabled on the shared Privy app — listing it here only
@@ -1437,6 +1500,25 @@ type FluentWidgetConfig = {
1437
1500
  sponsorship?: "auto" | "never";
1438
1501
  ethValueByToken?: FluentGasPaymentEthRates;
1439
1502
  };
1503
+ /**
1504
+ * How a smart-account send is executed. Every field defaults to the fast path, which falls
1505
+ * back to ZeroDev on its own: set a field to switch that one answer back to ZeroDev for good.
1506
+ *
1507
+ * @experimental May change or be removed in a minor release while the defaults are
1508
+ * measured; the defaults are the recommended setting.
1509
+ */
1510
+ execution?: FluentWidgetExecution;
1511
+ quickSign?: {
1512
+ /**
1513
+ * Call targets Quick sign may execute without the review. With a list set, a batch
1514
+ * operation runs silently only when every call's `to` is on it; a single call to any
1515
+ * other address shows the review and the signer prompt, even with Quick sign on. An
1516
+ * empty list is honoured and stops Quick sign from silencing anything; omit the
1517
+ * option to keep it covering every address. Compared case-insensitively.
1518
+ * `signMessage` / `signTypedData` have no call target and are not scoped by this.
1519
+ */
1520
+ whitelistAddresses?: readonly string[];
1521
+ };
1440
1522
  /**
1441
1523
  * `false` drops the Reputation tab from the account drawer — and with it the
1442
1524
  * whole tab strip, since Home is then the only tab. The families request is
@@ -1458,8 +1540,10 @@ type FluentWidgetConfig = {
1458
1540
  /**
1459
1541
  * `getAuthToken()` reuses a token until this many seconds before its `exp`, then fetches a
1460
1542
  * fresh one (the renewal-offset pattern: MSAL's `tokenRenewalOffsetSeconds`, Go oauth2's
1461
- * `expiryDelta`). Default 30. Set 0 to always fetch — every call then costs a wallet
1462
- * signature on the external-wallet path.
1543
+ * `expiryDelta`). Default 30. Set 0 to drop the margin entirely: a token is then reused
1544
+ * until `exp` itself, which is not the same as always fetching — it is the case the margin
1545
+ * exists for, a token handed out a moment before it expires and rejected by the backend it
1546
+ * is sent to.
1463
1547
  */
1464
1548
  authTokenRenewalOffsetSeconds?: number;
1465
1549
  assets?: Partial<typeof FLUENT_CONNECT_DEFAULT_ASSETS>;
@@ -1482,11 +1566,9 @@ type ResolvedFluentWidgetConfig = {
1482
1566
  privyClientId: string;
1483
1567
  network: FluentWidgetNetwork;
1484
1568
  appName: string;
1485
- authMode: FluentWidgetAuthMode;
1486
1569
  customOAuthRedirectUrl: string | undefined;
1487
1570
  /** What the dialog shows beside X, defaults applied. */
1488
1571
  authMethods: FluentWidgetAuthMethod[];
1489
- authorizeUrl: string;
1490
1572
  faucetEndpoint: string;
1491
1573
  eventsEndpoint: string;
1492
1574
  analyticsHost: string;
@@ -1508,6 +1590,11 @@ type ResolvedFluentWidgetConfig = {
1508
1590
  sponsorship: "auto" | "never";
1509
1591
  ethValueByToken: FluentGasPaymentEthRates | undefined;
1510
1592
  };
1593
+ execution: ResolvedFluentWidgetExecution;
1594
+ quickSign: {
1595
+ /** Lowercased and deduplicated; `undefined` leaves Quick sign covering every address. */
1596
+ whitelistAddresses: readonly Address[] | undefined;
1597
+ };
1511
1598
  reputationEnabled: boolean;
1512
1599
  scopes: string[];
1513
1600
  source: string;
@@ -1583,7 +1670,7 @@ type FluentZeroDevKernel = {
1583
1670
  zeroDevRpcUrl: string;
1584
1671
  chain: Chain;
1585
1672
  signerMode: FluentZeroDevSignerMode;
1586
- signerSource: "privy" | "hosted" | "session";
1673
+ signerSource: "privy" | "session";
1587
1674
  };
1588
1675
  type FluentZeroDevPermissionSession = {
1589
1676
  serializedPermissionAccount: string;
@@ -1600,8 +1687,6 @@ type FluentZeroDevPermissionCall = {
1600
1687
  callType?: CallType;
1601
1688
  };
1602
1689
  declare function useFluentZeroDevAccount(hookOptions?: {
1603
- authorizeUrl?: string;
1604
- allowHostedSigner?: boolean;
1605
1690
  /** App id in the sponsorship path. Sponsorship is off unless both this and the URL are set. */
1606
1691
  appId?: string;
1607
1692
  sponsorshipUrl?: string;
@@ -1614,6 +1699,11 @@ declare function useFluentZeroDevAccount(hookOptions?: {
1614
1699
  };
1615
1700
  sessionSignerAddress?: Address;
1616
1701
  sessionSmartAccountAddress?: Address;
1702
+ /**
1703
+ * Where a send reads its fees and its receipt, and whether the Signer's chain is read before
1704
+ * every signature. Omitted, the defaults of `FLUENT_CONNECT_DEFAULT_EXECUTION` apply.
1705
+ */
1706
+ execution?: ResolvedFluentWidgetExecution;
1617
1707
  /** Prefer over Privy's login when the host needs to remount Privy first. */
1618
1708
  login?: () => void;
1619
1709
  }): {
@@ -1624,7 +1714,7 @@ declare function useFluentZeroDevAccount(hookOptions?: {
1624
1714
  privyReady: boolean;
1625
1715
  privyAuthenticated: boolean;
1626
1716
  embeddedWalletCount: number;
1627
- authenticate: (options?: _privy_io_react_auth.LoginModalOptions | React.MouseEvent<any, any>) => void;
1717
+ authenticate: (options?: web.LoginModalOptions | React.MouseEvent<any, any>) => void;
1628
1718
  kernel: FluentZeroDevKernel | null;
1629
1719
  signerModesReady: FluentZeroDevSignerMode[];
1630
1720
  error: Error | null;
@@ -1643,6 +1733,8 @@ declare function useFluentZeroDevAccount(hookOptions?: {
1643
1733
  sponsored: boolean;
1644
1734
  sponsorshipReason?: FluentSponsorshipReason;
1645
1735
  paymaster?: Address;
1736
+ /** Where this send's milliseconds went. Absent only when the measurement itself failed. */
1737
+ timing?: FluentExecuteTiming;
1646
1738
  }>;
1647
1739
  refresh: () => Promise<FluentZeroDevKernel | null>;
1648
1740
  };
@@ -1652,12 +1744,6 @@ declare function createFluentZeroDevPermissionSession(params: {
1652
1744
  calls: readonly FluentZeroDevPermissionCall[];
1653
1745
  expiresAt?: number;
1654
1746
  }): Promise<FluentZeroDevPermissionSession>;
1655
- /**
1656
- * Runs `sign` with the Privy prompt worded for a plain signature rather than a
1657
- * UserOperation. The prompt kernel's signer reads a module-level context because
1658
- * the signer is built once per mode, while the wording is per call.
1659
- */
1660
- declare function withFluentSignaturePrompt<T>(sign: () => Promise<T>): Promise<T>;
1661
1747
 
1662
1748
  type FluentPermissionArgConstraint = {
1663
1749
  equals: unknown;
@@ -1751,11 +1837,35 @@ type FluentSignApi = {
1751
1837
  signTypedData: <const typedData extends TypedData | Record<string, unknown>, primaryType extends keyof typedData | "EIP712Domain" = keyof typedData>(typedData: TypedDataDefinition<typedData, primaryType>) => Promise<Hex>;
1752
1838
  };
1753
1839
 
1754
- /** Execution gas policy for a smart-account batch. Other UserOperation gas fields remain estimated. */
1755
- type FluentUserOperationGas = {
1840
+ type FixedAccountGas = {
1841
+ /** Whole-batch execution budget, including any Gas token approval. Positive uint128. */
1842
+ callGasLimit: bigint;
1843
+ /** Account validation and deployment budget. Positive uint128. */
1844
+ verificationGasLimit: bigint;
1845
+ /** Calldata overhead, or its ceiling with provider-owned paymaster gas. Positive uint256. */
1846
+ preVerificationGas: bigint;
1847
+ };
1848
+ type FixedPaymasterGas = {
1849
+ /** Fixed validation budget, a positive uint128. Omit both paymaster limits to use its answer. */
1850
+ paymasterVerificationGasLimit?: bigint;
1851
+ /** Fixed post-operation budget, a nonnegative uint128. Supplied together with validation. */
1852
+ paymasterPostOpGasLimit?: bigint;
1853
+ };
1854
+ /**
1855
+ * Gas policy for a Fluent ID batch. Estimation is enabled unless `skipEstimation` is true.
1856
+ * Skipping requires account limits. Omit both paymaster limits to use provider-authorized
1857
+ * paymaster gas and calldata overhead within `preVerificationGas`; supply both to fix all gas.
1858
+ */
1859
+ type FluentUserOperationGas = (FixedAccountGas & FixedPaymasterGas & {
1860
+ /** Skip the account gas hook and bundler gas estimation. Defaults to false. */
1861
+ skipEstimation: true;
1862
+ callGasBuffer?: never;
1863
+ }) | {
1864
+ skipEstimation?: false;
1756
1865
  callGasLimit: bigint;
1757
1866
  callGasBuffer?: never;
1758
1867
  } | {
1868
+ skipEstimation?: false;
1759
1869
  callGasLimit?: never;
1760
1870
  callGasBuffer: {
1761
1871
  /** Extra percent of the bundler estimate, rounded up. Must be a nonnegative safe integer. */
@@ -1764,6 +1874,16 @@ type FluentUserOperationGas = {
1764
1874
  fixed?: bigint;
1765
1875
  };
1766
1876
  };
1877
+ /** Reasons explicit gas preparation can fail before signing. */
1878
+ type FluentUserOperationGasErrorCode = "invalid_policy" | "paymaster_gas_mismatch";
1879
+ /**
1880
+ * An invalid skip-estimation policy or paymaster authorization for different gas limits.
1881
+ * `code` identifies the failure; `message` names the option or gas field to correct.
1882
+ */
1883
+ declare class FluentUserOperationGasError extends Error {
1884
+ readonly code: FluentUserOperationGasErrorCode;
1885
+ constructor(code: FluentUserOperationGasErrorCode, message: string);
1886
+ }
1767
1887
 
1768
1888
  type FluentBatchCallInput = {
1769
1889
  id?: string;
@@ -1809,6 +1929,79 @@ type FluentWidgetAccount = {
1809
1929
  /** What the active account can do — lets hosts adapt UI without branching on `type`. */
1810
1930
  capabilities: FluentAccountCapabilities;
1811
1931
  };
1932
+ /**
1933
+ * Absolute instants behind `FluentExecuteTiming`, kept so its signed estimates can be
1934
+ * re-checked rather than believed. Epoch milliseconds (`Date.now()`), because the only other
1935
+ * clock in the arithmetic — the including block's `timestamp` — is a wall clock too.
1936
+ */
1937
+ type FluentExecuteTimingInstants = {
1938
+ /** When the first submission attempt of this send began. */
1939
+ submittedAtEpochMs: number;
1940
+ /** When the bundler accepted the operation that settled. */
1941
+ broadcastedAtEpochMs: number;
1942
+ /** When that operation's receipt was in hand. */
1943
+ receivedAtEpochMs: number;
1944
+ /**
1945
+ * The including block's `timestamp`, in milliseconds. Absent exactly when `inclusionMs` and
1946
+ * `detectMs` are absent: the block could not be read.
1947
+ */
1948
+ blockTimestampEpochMs?: number;
1949
+ /** How many operations were submitted; more than one means a retry or an own-gas fallback. */
1950
+ attempts: number;
1951
+ };
1952
+ /**
1953
+ * Where one send's milliseconds went, stage by stage.
1954
+ *
1955
+ * Two clocks, and the difference decides how these numbers may be read. `prepareMs`,
1956
+ * `signMs`, `broadcastMs`, `retryMs` and `totalMs` are direct monotonic measurements on the
1957
+ * client (`performance.now()`). `inclusionMs` and `detectMs` are *signed estimates* across the
1958
+ * client's clock and the chain's: `block.timestamp` has one-second resolution and no relation
1959
+ * to the browser's clock, so either may legitimately be negative when it is small, and neither
1960
+ * is clamped — a clamp would turn a known skew into a silent zero. `instants` keeps the inputs,
1961
+ * so the subtraction can be redone by whoever doubts it.
1962
+ *
1963
+ * `totalMs` is measured, not summed: it runs from the start of the first submission to the
1964
+ * instant the receipt was in hand, and excludes both the kernel and authentication setup before
1965
+ * the send and the block read after it. It does not equal the sum of the stages and must not be
1966
+ * displayed as if it did.
1967
+ *
1968
+ * Collected for every send, whatever `debugLogging` is set to — the numbers are the answer to
1969
+ * "where did the four seconds go", which is a question a host asks in production. A failure
1970
+ * inside the measuring code costs the stages it could not establish, never the send.
1971
+ */
1972
+ type FluentExecuteTiming = {
1973
+ /**
1974
+ * Building the UserOperation — nonce, gas estimate, paymaster — up to the signature request.
1975
+ * Absent when the clock could not be read at that boundary: every stage here is absent rather
1976
+ * than approximated, because a stage silently widened to cover its neighbours is worse than a
1977
+ * stage the display can mark as unmeasured.
1978
+ */
1979
+ prepareMs?: number;
1980
+ /** Producing the signature. Absent when the settled attempt never got that far. */
1981
+ signMs?: number;
1982
+ /** Handing the signed operation to the bundler. Absent when signing never finished. */
1983
+ broadcastMs?: number;
1984
+ /**
1985
+ * Bundler acceptance to the including block's timestamp: bundling plus block time. Signed
1986
+ * estimate; absent when the including block could not be read.
1987
+ */
1988
+ inclusionMs?: number;
1989
+ /**
1990
+ * The including block's timestamp to the instant this client held the receipt: how long the
1991
+ * inclusion took to notice. Signed estimate; absent when the including block could not be read.
1992
+ */
1993
+ detectMs?: number;
1994
+ /**
1995
+ * Time spent on submissions that did not settle — a rejected sponsorship bearer, a refused
1996
+ * sponsorship falling back to own gas — and on the token exchange between them. It belongs to
1997
+ * no stage, is counted inside `totalMs`, and is `0` for a send that submitted once.
1998
+ */
1999
+ retryMs: number;
2000
+ /** First submission to receipt in hand. Measured directly; never a sum of the stages. */
2001
+ totalMs: number;
2002
+ /** The raw instants the signed estimates above were computed from. */
2003
+ instants: FluentExecuteTimingInstants;
2004
+ };
1812
2005
  /** Result of executing a batch operation. */
1813
2006
  type FluentExecuteResult = {
1814
2007
  /** Primary transaction hash — the final/target call (e.g. deposit/withdraw). */
@@ -1835,6 +2028,12 @@ type FluentExecuteResult = {
1835
2028
  * `UserOperationEvent` could be decoded — i.e. `sponsored` is a guess, say so.
1836
2029
  */
1837
2030
  paymaster?: Address;
2031
+ /**
2032
+ * Where this send's milliseconds went. Smart-account path only: an external wallet performs
2033
+ * its prompt, its signing and its broadcast behind one `sendTransaction` await, so EIP-1193
2034
+ * exposes no truthful instant to put a boundary on.
2035
+ */
2036
+ timing?: FluentExecuteTiming;
1838
2037
  };
1839
2038
  type FluentWidgetGasPayment = {
1840
2039
  symbol: FluentGasTokenSymbol;
@@ -1861,6 +2060,14 @@ type FluentBatchOperationExecutor = {
1861
2060
  defaultGasPayment?: FluentWidgetGasPayment;
1862
2061
  /** Native-gas policy inherited from widget config; each execution may override it. */
1863
2062
  defaultSponsorship?: "auto" | "never";
2063
+ /**
2064
+ * Call targets Quick sign may skip the review for, compared case-insensitively.
2065
+ * Set, it caps every `"session"` confirmation — the widget default and an explicit
2066
+ * per-execute option alike, because it is the host's guardrail and a per-call option
2067
+ * must not be able to lift it: an operation with any call outside the list reviews
2068
+ * and signs as `"always"`. Undefined leaves Quick sign covering every address.
2069
+ */
2070
+ quickSignWhitelist?: readonly Address[];
1864
2071
  confirm?: (operation: FluentBatchOperationReview) => Promise<void>;
1865
2072
  /**
1866
2073
  * `readyAccount` is whatever `ensureReady` resolved with for this execution, and is
@@ -1908,7 +2115,7 @@ type FluentGasPayment = {
1908
2115
  type FluentBatchOperationExecuteOptions = {
1909
2116
  confirmation?: FluentBatchConfirmationMode;
1910
2117
  gasPayment?: FluentGasPayment;
1911
- /** Smart-account execution gas override or headroom. Ignored for external EOA transactions. */
2118
+ /** Fluent ID gas limits, estimation opt-out or headroom. Ignored for External wallet sends. */
1912
2119
  userOperationGas?: FluentUserOperationGas;
1913
2120
  };
1914
2121
  type FluentBatchOperationReview = {
@@ -1934,6 +2141,14 @@ type FluentBatchApi = FluentPermissionApi & FluentSignApi & {
1934
2141
  };
1935
2142
  declare function createFluentBatchOp(input: FluentBatchOperationInput, executor?: FluentBatchOperationExecutor | null): FluentBatchOperation;
1936
2143
 
2144
+ /**
2145
+ * Privy runtime supplied by a host using a native SDK. Its Provider owns session
2146
+ * restoration, login and wallet RPC; web hosts keep the normal React SDK.
2147
+ * Keep one stable adapter per runtime. Changing its Provider remounts descendants
2148
+ * so React hooks from different SDKs never share a component lifetime.
2149
+ */
2150
+ type FluentPrivyAdapter = Pick<typeof web, "PrivyProvider" | "Captcha" | "usePrivy" | "useSignMessage" | "useSignTypedData" | "useWallets" | "useIdentityToken" | "useUser" | "useLinkAccount" | "useLoginWithSiwe" | "useModalStatus" | "useCreateWallet" | "useLoginWithEmail" | "useLoginWithOAuth" | "useLoginWithPasskey" | "useLinkWithPasskey">;
2151
+
1937
2152
  type FluentWalletChoice = {
1938
2153
  id: string;
1939
2154
  name: string;
@@ -1977,7 +2192,7 @@ type FluentExternalWalletState = {
1977
2192
  */
1978
2193
  type FluentWidgetStatus = "restoring" | "connecting" | "connected" | "disconnected";
1979
2194
 
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";
2195
+ 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" | "not_connected" | "root_signer_required" | "privy_token_missing" | "origin_mismatch" | "request_failed" | "not_authenticated" | "user_rejected" | "linked_to_another_user" | "link_failed";
1981
2196
  declare class FluentAuthError extends Error {
1982
2197
  readonly code: FluentAuthErrorCode;
1983
2198
  readonly status?: number | undefined;
@@ -2013,16 +2228,17 @@ type FluentLinkXResult = {
2013
2228
  type FluentWidgetRenderContext = {
2014
2229
  session: FluentWidgetSession | null;
2015
2230
  connectedAddress?: string;
2231
+ /** Privy's X avatar used by the account tile; absent for an External wallet or `forceDefault`. */
2232
+ userAvatarUrl?: string;
2016
2233
  wallet: FluentExternalWalletState | null;
2017
2234
  widget: FluentBatchApi;
2018
2235
  openConnect: () => void;
2019
2236
  openAccount: () => void;
2020
2237
  /**
2021
2238
  * Tear down the current session without going through the widget's account
2022
- * menu — the same teardown that menu's "Disconnect" runs, for both hosted and
2023
- * direct auth. The session, the stored identity token and any external wallet
2024
- * connection are cleared before this resolves, so a host can await it before
2025
- * resetting its own state.
2239
+ * menu — the same teardown that menu's "Disconnect" runs. The session, the
2240
+ * stored identity token and any external wallet connection are cleared before
2241
+ * this resolves, so a host can await it before resetting its own state.
2026
2242
  *
2027
2243
  * It also covers ending the Fluent session at the service — revoking the refresh
2028
2244
  * family so the 30 days stop here — including for a `getAuthToken()` that was still
@@ -2061,8 +2277,7 @@ type FluentWidgetRenderContext = {
2061
2277
  * alike. The wallet signs once, when the session opens; the renewals that follow ask it for
2062
2278
  * nothing. A new signature is needed only when the session's 30-day refresh family expires,
2063
2279
  * when the service rejects the refresh credential, or when it was never stored (the user
2064
- * disconnected, cleared site data, or opened another browser). A Fluent ID gets a token in
2065
- * direct mode and throws `FluentAuthError` (`code: "hosted_not_supported"`) in hosted mode.
2280
+ * disconnected, cleared site data, or opened another browser).
2066
2281
  * External wallets: EOAs and deployed smart-contract wallets sign in; a not-yet-deployed
2067
2282
  * smart account cannot (no ERC-6492).
2068
2283
  */
@@ -2093,20 +2308,19 @@ type FluentWidgetRenderContext = {
2093
2308
  *
2094
2309
  * Rejects with `FluentAuthError`: `user_rejected` (the user said no at X, or declined the
2095
2310
  * 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`.
2311
+ * `not_authenticated` (no Fluent ID or external wallet connected), `bad_request` and
2312
+ * `link_failed` (everything else). No other code reaches the caller: a refusal from under
2313
+ * the call keeps its message under `link_failed`.
2100
2314
  */
2101
2315
  linkX: () => Promise<FluentLinkXResult>;
2102
- /** The resolved auth mode: `"hosted"` unless the config says `"direct"`. */
2103
- authMode: FluentWidgetAuthMode;
2104
2316
  };
2105
2317
  type FluentWidgetConnectButtonRenderContext = {
2106
2318
  connected: boolean;
2107
2319
  /** True while a direct-auth smart account is being prepared after sign-in. */
2108
2320
  pending: boolean;
2109
2321
  addressLabel?: string;
2322
+ /** Privy's X avatar used by the account tile; absent for an External wallet or `forceDefault`. */
2323
+ userAvatarUrl?: string;
2110
2324
  onClick: () => void;
2111
2325
  openConnect: () => void;
2112
2326
  openAccount: () => void;
@@ -2115,6 +2329,8 @@ type FluentWidgetConnectButtonRenderContext = {
2115
2329
  type FluentWidgetProps = {
2116
2330
  wallet?: FluentExternalWalletState | null;
2117
2331
  config: FluentWidgetConfig;
2332
+ /** Optional native Privy SDK bridge; requires direct auth. */
2333
+ privyAdapter?: FluentPrivyAdapter;
2118
2334
  mode?: "home" | "page";
2119
2335
  /**
2120
2336
  * Show the default connect/account control.
@@ -2177,7 +2393,7 @@ type FluentUserTokenAddResult = {
2177
2393
  * Asynchronous because the truth may live on the service: while the widget
2178
2394
  * holds a Fluent token the backing store is `createFluentBackendUserTokenStore`
2179
2395
  * and the list follows the person between Apps and browsers; where no Fluent
2180
- * token can exist (hosted mode with a Fluent ID, and the not-connected state)
2396
+ * token can exist (the not-connected state)
2181
2397
  * it is `createFluentUserTokenStore` over this browser's localStorage. See
2182
2398
  * `docs/adr/0004-user-settings-live-on-the-service.md`.
2183
2399
  */
@@ -2478,7 +2694,6 @@ type FluentIframeRpcRequest = {
2478
2694
  * injected so the handler is pure: it never reads the DOM or React state on its own.
2479
2695
  */
2480
2696
  type FluentIframeRpcExecutor = {
2481
- authMode: FluentWidgetAuthMode;
2482
2697
  /** Read at call time: the account changes while the bridge lives. */
2483
2698
  account: () => FluentWidgetAccount;
2484
2699
  chainId: number;
@@ -2566,8 +2781,7 @@ type UseFluentIframeBridgeOptions = {
2566
2781
  * Lets a page embedded in `iframeRef` use the account signed in here, over the
2567
2782
  * JSON-RPC `postMessage` protocol `@ledgerhq/iframe-provider` speaks. The bridge lives
2568
2783
  * while the component is mounted; the bridge states the chain and account before its
2569
- * first reply, and sign-in and sign-out reach the iframe as `accountsChanged`. Direct mode only: in hosted mode
2570
- * the signing and sending calls reject the way `signMessage` does.
2784
+ * first reply, and sign-in and sign-out reach the iframe as `accountsChanged`.
2571
2785
  */
2572
2786
  declare function useFluentIframeBridge(iframeRef: RefObject<FluentIframeElement | null>, { allowedOrigin }: UseFluentIframeBridgeOptions): void;
2573
2787
 
@@ -2616,6 +2830,16 @@ type FluentZeroDevPaymasterDemoResult = {
2616
2830
  transactionHash: Hash;
2617
2831
  userOpHash: Hash;
2618
2832
  };
2833
+ /**
2834
+ * The ZeroDev bundler URL for one chain. `chainId` defaults to Fluent Testnet, and `projectId`
2835
+ * to the Fluent ZeroDev project of the network that chain id belongs to — the testnet project
2836
+ * for 20994, the production one for 25363 — so a host that passes a chain id gets that
2837
+ * network's project without naming it. Pass `projectId` to use your own ZeroDev project, and
2838
+ * `selfFunded` for the ERC-20 paymaster form.
2839
+ *
2840
+ * @example
2841
+ * const rpcUrl = createFluentZeroDevRpcUrl({ chainId: 25363 });
2842
+ */
2619
2843
  declare function createFluentZeroDevRpcUrl(params?: {
2620
2844
  chainId?: number;
2621
2845
  projectId?: string;
@@ -2943,8 +3167,38 @@ interface WalletMenuActionCardProps {
2943
3167
  /** True where the App's paymaster may cover a native-gas operation. */
2944
3168
  sponsorshipAvailable: boolean;
2945
3169
  };
3170
+ /**
3171
+ * Registers a passkey on the signed-in Fluent ID, so the next sign-in is the
3172
+ * dialog's "Continue with passkey" instead of the X round trip. Absent where
3173
+ * there is no Privy session on this page to register it on — hosted mode, an
3174
+ * External wallet, the preview harnesses — and Settings then has no Security
3175
+ * section at all: an action that can only fail is not offered.
3176
+ */
3177
+ onAddPasskey?: () => Promise<void>;
3178
+ /**
3179
+ * The passkeys the signed-in user already has, listed above the Add row so the
3180
+ * state reads before the action. What Privy's record says, not the browser's:
3181
+ * a credential deleted from a password manager stays listed until it is
3182
+ * removed here — WebAuthn gives the server no word of a local deletion.
3183
+ */
3184
+ passkeys?: readonly FluentSettingsPasskey[];
3185
+ /**
3186
+ * Removes one passkey from the account by its credential id — Privy's record
3187
+ * of it; the key in the person's password manager is theirs to delete. Absent
3188
+ * hides the per-row remove button, nothing else.
3189
+ */
3190
+ onRemovePasskey?: (credentialId: string) => Promise<void>;
2946
3191
  }
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;
3192
+ /** One passkey of the signed-in user, as the Security section lists it. */
3193
+ type FluentSettingsPasskey = {
3194
+ /** Privy's credential id — the handle `onRemovePasskey` takes. */
3195
+ credentialId: string;
3196
+ /** Where it lives, as Privy recorded it: "iCloud Keychain", "Chrome on Mac OS X", … */
3197
+ label: string;
3198
+ /** The day it was added, already formatted for display; absent when Privy has none. */
3199
+ addedOn?: string;
3200
+ };
3201
+ 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, onAddPasskey, passkeys, onRemovePasskey, }: WalletMenuActionCardProps): React.JSX.Element | null;
2948
3202
 
2949
3203
  declare const buttonVariants: (props?: ({
2950
3204
  variant?: "default" | "link" | "outline" | "secondary" | "ghost" | "destructive" | null | undefined;
@@ -2995,4 +3249,4 @@ type AccountAvatarProps = {
2995
3249
  */
2996
3250
  declare function AccountAvatar({ userLogoUrl, defaultLogoUrl, className }: AccountAvatarProps): React.JSX.Element;
2997
3251
 
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 };
3252
+ 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 FluentExecuteTiming, type FluentExecuteTimingInstants, 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 FluentPrivyAdapter, 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, FluentUserOperationGasError, type FluentUserOperationGasErrorCode, type FluentUserSettings, type FluentUserSettingsPatch, type FluentUserTokenAddResult, type FluentWalletChoice, FluentWidget, type FluentWidgetAccount, type FluentWidgetAuthMethod, type FluentWidgetConfig, FluentWidgetConfigError, type FluentWidgetConfigErrorCode, FluentWidgetConnectButton, type FluentWidgetConnectButtonProps, type FluentWidgetConnectButtonRenderContext, type FluentWidgetExecution, type FluentWidgetExecutionSource, 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, type ResolvedFluentWidgetExecution, 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 };