UNPKG

@metamask/snaps-simulation

Version:

A simulation framework for MetaMask Snaps, enabling headless testing of Snaps in a controlled environment

11 lines 476 B
import { type JsonRpcMiddleware } from "@metamask/json-rpc-engine"; import type { Json, JsonRpcParams } from "@metamask/utils"; import type { Store } from "../store/index.mjs"; /** * Create a middleware for handling JSON-RPC methods that have been mocked. * * @param store - The Redux store to use. * @returns A middleware function. */ export declare function createMockMiddleware(store: Store): JsonRpcMiddleware<JsonRpcParams, Json>; //# sourceMappingURL=mock.d.mts.map