@latticexyz/entrykit 2.2.22-6508c1df5ea605f58112f192114a2f837f362ecc → 2.2.22-689708688d9215c3441ffeac029236023d05c25f

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.
@@ -3,7 +3,8 @@ import { Chain, Client, Transport, Account, Address as Address$1, LocalAccount }
3
3
  import { SmartAccount } from 'viem/account-abstraction';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
  import { ReactNode } from 'react';
6
- import { UseQueryResult } from '@tanstack/react-query';
6
+ import * as _tanstack_react_query from '@tanstack/react-query';
7
+ import { UseQueryResult, QueryClient } from '@tanstack/react-query';
7
8
  import { CreateConfigParameters, Config } from 'wagmi';
8
9
 
9
10
  type EntryKitConfigInput = {
@@ -121,4 +122,36 @@ declare function internal_validateSigner({ client, worldAddress, userAddress, se
121
122
  signerAddress: Address$1;
122
123
  }): Promise<void>;
123
124
 
124
- export { AccountButton, type ConnectedClient, type CreateWagmiConfigOptions, type EntryKitConfig, type EntryKitConfigInput, EntryKitProvider, type SessionClient, createWagmiConfig, defineConfig, internal_validateSigner, useAccountModal, useEntryKitConfig, useSessionClientReady as useSessionClient };
125
+ declare function getFundsQueryOptions({ queryClient, config, client, userAddress, }: {
126
+ queryClient: QueryClient;
127
+ config: Config;
128
+ client: Client<Transport, Chain> | undefined;
129
+ userAddress: Address$1 | undefined;
130
+ }): _tanstack_react_query.UseQueryOptions<{
131
+ sessionBalance: bigint;
132
+ paymasterAllowance: bigint | null;
133
+ paymasterBalance: bigint | null;
134
+ }, Error, {
135
+ sessionBalance: bigint;
136
+ paymasterAllowance: bigint | null;
137
+ paymasterBalance: bigint | null;
138
+ }, (string | undefined)[]> & {
139
+ initialData?: _tanstack_react_query.InitialDataFunction<{
140
+ sessionBalance: bigint;
141
+ paymasterAllowance: bigint | null;
142
+ paymasterBalance: bigint | null;
143
+ }> | undefined;
144
+ } & {
145
+ queryKey: _tanstack_react_query.DataTag<(string | undefined)[], {
146
+ sessionBalance: bigint;
147
+ paymasterAllowance: bigint | null;
148
+ paymasterBalance: bigint | null;
149
+ }>;
150
+ };
151
+ declare function useFunds(userAddress: Address$1 | undefined): _tanstack_react_query.UseQueryResult<{
152
+ sessionBalance: bigint;
153
+ paymasterAllowance: bigint | null;
154
+ paymasterBalance: bigint | null;
155
+ }, Error>;
156
+
157
+ export { AccountButton, type ConnectedClient, type CreateWagmiConfigOptions, type EntryKitConfig, type EntryKitConfigInput, EntryKitProvider, type SessionClient, createWagmiConfig, defineConfig, getFundsQueryOptions, internal_validateSigner, useAccountModal, useEntryKitConfig, useFunds, useSessionClientReady as useSessionClient };