import type { CallbackParams } from '@lit-protocol/types'; import { ConnectionInfo } from '../LitChainClient'; import { LitNetworkModuleBase } from '../../../../types'; import type { INetworkConfig } from '../../interfaces/NetworkContext'; /** * It returns a blockhash manager for latestBlockhash/nonce and event state * manager for latest connection info. */ export declare const createStateManager: (params: { networkConfig: INetworkConfig; callback: (params: CallbackParams) => Promise; networkModule: LitNetworkModuleBase; createReadOnlyChainManager: () => any; }) => Promise<{ /** * Gets the latest known blockhash, potentially triggering a fetch or refresh if needed. */ getLatestBlockhash: () => Promise; getCallbackResult: () => T | null; /** * Gets the latest known connection info, updated when staking state becomes Active. */ getLatestConnectionInfo: () => ConnectionInfo | null; refreshHandshake: (reason?: string) => Promise; /** * Stops the background listeners (blockhash refresh, event listening). */ stop: () => void; contractManager: any; }>;