UNPKG

522 BTypeScriptView Raw
1import React from 'react';
2import type { Atom, Scope } from './atom';
3import type { State } from './vanilla';
4export declare const Provider: React.FC<{
5 initialValues?: Iterable<readonly [Atom<unknown>, unknown]>;
6 scope?: Scope;
7}>;
8export declare const getDebugStateAndAtoms: ({ atoms, state, }: {
9 atoms: Atom<unknown>[];
10 state: State;
11}) => (State | Atom<unknown>[])[];
12export declare const subscribeDebugStore: ({ listeners }: {
13 listeners: Set<() => void>;
14}, callback: () => void) => () => boolean;