import type { NamedTask, Task } from '../../../../framework-types/task/Types';
import type { Unsubscribe } from '../../../Types';
import type { ContextWithState } from '../../Types';
import type { ArrayAtom } from '../state/ArrayStateAtom';
import type { MapStateAtom } from '../state/MapStateAtom';
import type { ErrorCallback } from '../state/state-effect/Types';
type Subscriber<T, C extends ContextWithState> = NamedTask<Task<C, T, void>>;
export declare function mapSubscribe<C extends ContextWithState, T, _ = void>({ fork, effects }: C, arrayAtom: ArrayAtom<T>, subscriber: Subscriber<T, C>, errorCallback?: ErrorCallback): Unsubscribe;
export declare function mapSubscribe<C extends ContextWithState, K, V>({ fork, effects }: C, mapAtom: MapStateAtom<K, V>, subscriber: Subscriber<[K, V], C>, errorCallback?: ErrorCallback): Unsubscribe;
export {};
