import { Observable } from 'rxjs'; import { A as Atom, D as DestroyableAtom, S as Signal } from './types-CxOJPpKX.js'; import { S as SignalObserveOptions } from './observe-Dt3_PKtB.js'; /** * Provider for a value of a state. */ type Query = Readonly<{ /** Returns the value of a state */ get: () => T; /** `Observable` for value changes. */ value$: Observable; }>; /** * Creates a Query for the given Atom */ declare function toQuery(source: Atom): Query; /** * Creates an Atom from a Query */ declare function fromQuery(query: Query): DestroyableAtom; /** * Action of Rx-Effects */ type Action = { readonly event$: Observable; (event: Event): void; } & ([Event] extends [undefined | void] ? { (event?: Event): void; } : { (event: Event): void; }); declare function toAction(source: Signal, options?: SignalObserveOptions): Action; declare function fromAction(action: Action): Signal; export { fromAction, fromQuery, toAction, toQuery };