import type { FlowSubject } from '../FlowSubject.js'; import type { Action, Effect, ActionType, ExtractAction } from '../types/index.js'; /** * React hook that attaches a side-effect to a {@link FlowSubject}, filtered * by a specific action type. * * @template S - The state type. * @template A - The action type. * @template TType - The specific action type to listen for. * @param subject - The `FlowSubject` to attach the effect to. * @param type - The action type string to filter on. * @param effect - The effect function invoked for each matching action. */ export declare function useObservableEffect = ActionType>(subject: FlowSubject, type: TType, effect?: Effect, S>): void; /** * React hook that attaches a side-effect to a {@link FlowSubject} for all actions. * * @template S - The state type. * @template A - The action type. * @param subject - The `FlowSubject` to attach the effect to. * @param effect - The effect function invoked for each dispatched action. */ export declare function useObservableEffect(subject: FlowSubject, effect: Effect): void; export default useObservableEffect;