UNPKG

@metamask/snaps-simulation

Version:

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

11 lines 480 B
import type { Snap } from "@metamask/snaps-utils"; /** * Get a method that gets a Snap by its ID. * * @param preinstalled - Whether the Snap is preinstalled. If `true`, the Snap * will be returned as a preinstalled Snap. * @returns A method that gets a Snap by its ID. It will always return a mock * Snap for simulation purposes. */ export declare function getGetSnapImplementation(preinstalled?: boolean): (_snapId: string) => Snap; //# sourceMappingURL=get-snap.d.cts.map