UNPKG

@metamask/snaps-simulation

Version:

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

28 lines 1.49 kB
import type { DialogApprovalTypes } from "@metamask/snaps-rpc-methods"; import type { DialogType } from "@metamask/snaps-sdk"; import type { PayloadAction } from "@reduxjs/toolkit"; export type Interface = { type: DialogApprovalTypes[DialogType | 'default'] | 'Notification'; id: string; }; export type UiState = { current?: Interface | null; }; export declare const uiSlice: import("@reduxjs/toolkit").Slice<UiState, { setInterface(state: import("immer/dist/internal.js").WritableDraft<UiState>, action: PayloadAction<Interface>): void; closeInterface(state: import("immer/dist/internal.js").WritableDraft<UiState>): void; }, "ui">; export declare const resolveInterface: import("@reduxjs/toolkit").ActionCreatorWithNonInferrablePayload<string>; export declare const setInterface: import("@reduxjs/toolkit").ActionCreatorWithPayload<Interface, "ui/setInterface">, closeInterface: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"ui/closeInterface">; export declare const getCurrentInterface: ((state: { mocks: import("./mocks.cjs").MocksState; notifications: import("./notifications.cjs").NotificationsState; state: import("./state.cjs").State; trackables: import("./trackables.cjs").TrackablesState; ui: UiState; }) => Interface | null | undefined) & import("reselect").OutputSelectorFields<(args_0: UiState) => Interface | null | undefined, { clearCache: () => void; }> & { clearCache: () => void; }; //# sourceMappingURL=ui.d.cts.map