import { AdaptOptions, InitialState, NotAdaptOptions } from '@state-adapt/rxjs'; import { ReactionsWithSelectors, Selectors } from '@state-adapt/core'; import { ReactStore } from './react-store'; /** * See {@link StateAdapt.adapt} for the complete API. * * This wrapper additionally lets you call the store as a function for its * current state, or call a selector property for its current result. * * ```ts * import { stringAdapter } from '@state-adapt/core/adapters'; * import { adapt } from '@state-adapt/react'; * * const name = adapt('John', stringAdapter); * * console.log(name()); // 'John' * console.log(name.uppercase()); // 'JOHN' * ``` * * See {@link derive} for composing these reads. */ export declare function adapt, R extends ReactionsWithSelectors, R2 extends ReactionsWithSelectors, ReturnedSources = unknown>(initialState: InitialState, second?: (R & { selectors?: S; } & NotAdaptOptions) | AdaptOptions): ReactStore;