import { Action, BoundStateFn, Context, Runtime, StateTransition } from "@druyan/druyan"; import React, { ReactNode } from "react"; export interface CreateProps; }, AM extends { [key: string]: (...args: any[]) => Action; }> { initialState: StateTransition; children: ReactNode | ((api: { actions: AM; context: Context; currentState: ReturnType; }) => ReactNode); } export interface ContextValue; }, AM extends { [key: string]: (...args: any[]) => Action; }> { currentState: ReturnType; context: Context; actions: AM; runtime?: Runtime; } interface Options { parent: { Context: React.Context; }; fallback: BoundStateFn; maxHistory: number; restartOnInitialStateChange?: boolean; } export declare function createDruyanContext; }, AM extends { [key: string]: (...args: any[]) => Action; }>(_states: SM, actions: AM, options?: Partial): { Context: React.Context>; Create: ({ initialState: initialStateProp, children, }: CreateProps) => JSX.Element; }; export {}; //# sourceMappingURL=createDruyanContext.d.ts.map