@metamask/snaps-simulation
Version:
A simulation framework for MetaMask Snaps, enabling headless testing of Snaps in a controlled environment
29 lines • 1.21 kB
text/typescript
import type { NotifyParams } from "@metamask/snaps-sdk";
import { NotificationType } from "@metamask/snaps-sdk";
import type { RunSagaFunction } from "../../store/index.mjs";
/**
* Get a method that can be used to show a native notification.
*
* @param runSaga - A function to run a saga outside the usual Redux flow.
* @returns A method that can be used to show a native notification.
*/
export declare function getShowNativeNotificationImplementation(runSaga: RunSagaFunction): (_snapId: string, args_1: NotifyParams) => Promise<any>;
type InAppNotificationParams = {
type: NotificationType;
message: string;
title?: string | undefined;
content?: string | undefined;
footerLink?: {
text: string;
href: string;
} | undefined;
};
/**
* Get a method that can be used to show an in-app notification.
*
* @param runSaga - A function to run a saga outside the usual Redux flow.
* @returns A method that can be used to show an in-app notification.
*/
export declare function getShowInAppNotificationImplementation(runSaga: RunSagaFunction): (_snapId: string, args_1: InAppNotificationParams) => Promise<any>;
export {};
//# sourceMappingURL=notifications.d.mts.map