1 | import * as O from 'optics-ts';
|
2 | import type { WritableAtom, SetStateAction, PrimitiveAtom } from '../core/types';
|
3 | export declare function focusAtom<S, A>(atom: PrimitiveAtom<S>, callback: (optic: O.OpticFor<S>) => O.Prism<S, any, A>): WritableAtom<A | undefined, SetStateAction<A>>;
|
4 | export declare function focusAtom<S, A>(atom: PrimitiveAtom<S>, callback: (optic: O.OpticFor<S>) => O.Traversal<S, any, A>): WritableAtom<Array<A>, SetStateAction<A>>;
|
5 | export declare function focusAtom<S, A>(atom: PrimitiveAtom<S>, callback: (optic: O.OpticFor<S>) => O.Lens<S, any, A> | O.Equivalence<S, any, A> | O.Iso<S, any, A>): WritableAtom<A, SetStateAction<A>>;
|