import type { EffectsPluginConfig, EffectState } from '../../types'; declare type EffectStateReturn = readonly [EffectState | S, boolean]; /** * Subscribe to the latest value of a particular effect. * This hook is sugar around `useEffectListener` and `useState`. * @param effectType - Name of the effect to subscribe to. * @param initialState - Value to use for state before effect first fires. * @return - Tuple of `[effectState: any, isActive: boolean]`. * `effectState` will be `undefined` on initial render if `initialState` is not set. * `isActive` is true for the length of the effect’s duration. */ export declare function useEffectState(effectType: K, initialState?: S, _config?: C): EffectStateReturn; export {};