function atomimport { atom } from "https://deno.land/x/jotai@v1.8.3/src/core/atom.ts"; atom<Value, Update, Result extends void | Promise<void> = void>(read: Read<Value>, write: Write<Update, Result>): WritableAtom<Value, Update, Result>atom<Value>(read: Read<Value>): Atom<Value>atom(invalidFunction: (...args: any) => any, write?: any): neveratom<Value, Update, Result extends void | Promise<void> = void>(initialValue: Value, write: Write<Update, Result>): WritableAtom<Value, Update, Result> & WithInitialValue<Value>atom<Value>(initialValue: Value): PrimitiveAtom<Value> & WithInitialValue<Value>Type ParametersValueUpdateoptionalResult extends void | Promise<void> = voidParametersread: Read<Value>write: Write<Update, Result>ReturnsWritableAtom<Value, Update, Result>Type ParametersValueParametersread: Read<Value>ReturnsAtom<Value>ParametersinvalidFunction: (...args: any) => anyoptionalwrite: anyReturnsneverType ParametersValueUpdateoptionalResult extends void | Promise<void> = voidParametersinitialValue: Valuewrite: Write<Update, Result>ReturnsWritableAtom<Value, Update, Result> & WithInitialValue<Value>Type ParametersValueParametersinitialValue: ValueReturnsPrimitiveAtom<Value> & WithInitialValue<Value>