import type { Config, ResolvedRegister } from '@wagmi/core';
import type { ConfigParameter, ExactPartial, UnionCompute } from '@wagmi/core/internal';
import { Actions } from '@wagmi/core/tempo';
import { type UseQueryReturnType } from '../../utils/query.js';
import type { QueryParameter } from '../utils.js';
/**
* Hook for getting the nonce for an account and nonce key.
*
* @example
* ```tsx
* import { Hooks } from 'wagmi/tempo'
*
* function App() {
* const { data, isLoading } = Hooks.nonce.useNonce({
* account: '0x...',
* nonceKey: 1n,
* })
*
* if (isLoading) return
Loading...
* return Nonce: {data?.toString()}
* }
* ```
*
* @param parameters - Parameters.
* @returns Query result with nonce value.
*/
export declare function useNonce(parameters?: useNonce.Parameters): useNonce.ReturnValue;
export declare namespace useNonce {
type Parameters = ConfigParameter & QueryParameter> & ExactPartial>;
type ReturnValue = UseQueryReturnType;
}
/**
* Hook for watching nonce incremented events.
*
* @deprecated This function has been deprecated post-AllegroModerato. It will be removed in a future version.
*
* @example
* ```tsx
* import { Hooks } from 'wagmi/tempo'
*
* function App() {
* Hooks.nonce.useWatchNonceIncremented({
* onNonceIncremented(args, log) {
* console.log('Nonce incremented:', args)
* },
* })
*
* return Watching for nonce increments...
* }
* ```
*
* @param parameters - Parameters.
*/
export declare function useWatchNonceIncremented(parameters?: useWatchNonceIncremented.Parameters): void;
export declare namespace useWatchNonceIncremented {
type Parameters = UnionCompute> & ConfigParameter & {
enabled?: boolean | undefined;
}>;
}
//# sourceMappingURL=nonce.d.ts.map