import { type TypedHook } from "../../hooks/index.ts"; import type { Atom } from "../index.js"; export declare function useAtomHook(props: UseAtomHook.Props): Result | undefined; export declare namespace UseAtomHook { interface Props { enable?: boolean | undefined; atom: Atom.Envelop>; getValue: TypedHook.Memoized<() => Value>; shouldRender?: TypedHook.Memoized>; watch?: TypedHook.Memoized>; toResult?: TypedHook.Memoized>; } interface Ref { id: string; value: Value | undefined; enable: boolean; } type ShouldRender = (prevValue: Value | undefined, nextValue: Value) => boolean; interface WatchProps { valueRef: React.MutableRefObject>; rerender: () => void; } type Watch = (props: WatchProps) => Atom.Unwatch; type ToResult = (value: Value | undefined) => Result | undefined; } //# sourceMappingURL=index.d.ts.map