import { Atom, AtomActions, AtomOptions, AtomValue } from "./types.mjs"; //#region ../@mongez/atom/src/atom.d.ts declare const atoms: Record>; /** * Get atom by name */ declare function getAtom(name: string): Atom | undefined; /** * Options that control how an atom is constructed. * Internal-only; used by store-scoped clones to opt out of the global registry. */ type CreateAtomOptions = { /** * When false, the new atom will NOT be inserted into the module-level * `atoms` registry. Used by `AtomStore` to create per-store clones that * stay isolated from the global lookup table. * * Defaults to true. */ register?: boolean; }; /** * Create a new atom */ declare function createAtom = AtomActions>(data: AtomOptions, Actions>, options?: CreateAtomOptions): Atom; /** * Get all atoms list */ declare function atomsList(): Atom[]; /** * Return atoms in object format */ declare function atomsObject(): Record>; //#endregion export { CreateAtomOptions, atoms, atomsList, atomsObject, createAtom, getAtom }; //# sourceMappingURL=atom.d.mts.map