import { type TAnyFeature } from 'feature-core'; import type { TState } from 'feature-state'; /** * Returns the current value of a state and re-renders the component on each change. * * Pass `null` or `undefined` to opt out: the hook returns `null` and registers no listener. * Background updates mark the change for the next render without forcing an immediate re-render. */ export declare function useFeatureState(state: GState): TFeatureStateValue; type TAnyFeatureState = TState | null | undefined; type TFeatureStateValue = GState extends TState ? GValue : null; export {};