@metamask/snaps-simulation
Version:
A simulation framework for MetaMask Snaps, enabling headless testing of Snaps in a controlled environment
17 lines • 1.02 kB
text/typescript
import type { Component, ContentType, InterfaceContext, SnapId } from "@metamask/snaps-sdk";
import type { RootControllerMessenger } from "../../controllers.mjs";
/**
* Get the implementation of the `createInterface` hook.
*
* @param controllerMessenger - The controller messenger used to call actions.
* @returns The implementation of the `createInterface` hook.
*/
export declare function getCreateInterfaceImplementation(controllerMessenger: RootControllerMessenger): (snapId: SnapId, content: Component, context?: InterfaceContext, contentType?: ContentType) => Promise<string>;
/**
* Get the implementation of the `getInterface` hook.
*
* @param controllerMessenger - The controller messenger used to call actions.
* @returns The implementation of the `getInterface` hook.
*/
export declare function getGetInterfaceImplementation(controllerMessenger: RootControllerMessenger): (snapId: SnapId, id: string) => import("@metamask/snaps-controllers").StoredInterface;
//# sourceMappingURL=interface.d.mts.map