@metamask/snaps-simulation
Version:
A simulation framework for MetaMask Snaps, enabling headless testing of Snaps in a controlled environment
16 lines • 583 B
text/typescript
import type { RunSagaFunction } from "../../store/index.mjs";
type RequestUserApprovalParams = {
type: string;
requestData: {
id: string;
};
};
/**
* Get the implementation of the `requestUserApproval` hook.
*
* @param runSaga - The function to run a saga outside the usual Redux flow.
* @returns The implementation of the `requestUserApproval` hook.
*/
export declare function getRequestUserApprovalImplementation(runSaga: RunSagaFunction): (args_0: RequestUserApprovalParams) => Promise<any>;
export {};
//# sourceMappingURL=request-user-approval.d.mts.map