import { AnyStateMachine, AreAllImplementationsAssumedToBeProvided, EventObject, InternalMachineOptions, InterpreterFrom, InterpreterOptions, StateConfig, StateFrom } from 'xstate'; import { MaybeLazy, Prop } from './types'; export interface UseMachineOptions { /** * 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 RestParams = AreAllImplementationsAssumedToBeProvided extends false ? [ options: InterpreterOptions & UseMachineOptions & InternalMachineOptions ] : [ options?: InterpreterOptions & UseMachineOptions & InternalMachineOptions ]; declare type UseMachineReturn> = [StateFrom, Prop, TInterpreter]; export declare function useMachine(getMachine: MaybeLazy, ...[options]: RestParams): UseMachineReturn; export {}; //# sourceMappingURL=useMachine.d.ts.map