import { AnyStateMachine, AreAllImplementationsAssumedToBeProvided, EventObject, InternalMachineOptions, InterpreterFrom, InterpreterOptions, Prop, StateConfig, StateFrom } from 'xstate'; import { Getter, WritableAtom } from 'jotai'; export declare const RESTART: unique symbol; export interface MachineAtomOptions { /** * If provided, will be merged with machine's `context`. */ context?: Partial; /** * The state to rehydrate the machine to. The machine will * start at this state instead of its `initialState`. */ state?: StateConfig; } declare type Options = AreAllImplementationsAssumedToBeProvided extends false ? InterpreterOptions & MachineAtomOptions & InternalMachineOptions : InterpreterOptions & MachineAtomOptions & InternalMachineOptions; declare type MaybeParam = T extends (v: infer V) => unknown ? V : never; export declare function atomWithMachine>(getMachine: TMachine | ((get: Getter) => TMachine), getOptions?: Options | ((get: Getter) => Options)): WritableAtom, MaybeParam> | typeof RESTART, void>; export {};