import { useStore } from 'jotai/react'; import type { WritableAtom } from 'jotai/vanilla'; type Options = Parameters[0] & { dangerouslyForceHydrate?: boolean; }; type AnyWritableAtom = WritableAtom; type InferAtomTuples = { [K in keyof T]: T[K] extends readonly [ infer A, unknown ] ? A extends WritableAtom ? readonly [ A, Args[0] ] : T[K] : never; }; export type INTERNAL_InferAtomTuples = InferAtomTuples; export declare function useHydrateAtoms(values: InferAtomTuples, options?: Options): void; export declare function useHydrateAtoms>(values: T, options?: Options): void; export declare function useHydrateAtoms>(values: InferAtomTuples, options?: Options): void; export {}; declare type Awaited = T extends Promise ? V : T;