crux-wrapper
Version:
A React provider for your crux application
19 lines • 629 B
TypeScript
import react from "react";
import { State } from "./state.js";
import type { CruxEntity } from "../types.js";
type Props = {
children: React.ReactNode;
dispatch?: (event: CruxEntity) => Promise<void>;
state: State;
};
/**
* Provides a context that exposes the crux api.
*/
export declare function MockCoreProvider({ children, dispatch, state }: Props): react.FunctionComponentElement<react.ProviderProps<{
dispatch: (event: CruxEntity) => Promise<void>;
logs: import("../eventSender.js").EventSenderLog[];
state?: State;
ready: boolean;
}>>;
export {};
//# sourceMappingURL=MockCoreProvider.d.ts.map