@metamask/snaps-rpc-methods
Version:
MetaMask Snaps JSON-RPC method implementations
8 lines • 558 B
text/typescript
import type { PermittedHandlerExport } from "@metamask/permission-controller";
import type { BackgroundEvent, GetBackgroundEventsParams, GetBackgroundEventsResult } from "@metamask/snaps-sdk";
export type GetBackgroundEventsMethodHooks = {
getBackgroundEvents: () => BackgroundEvent[];
hasPermission: (permissionName: string) => boolean;
};
export declare const getBackgroundEventsHandler: PermittedHandlerExport<GetBackgroundEventsMethodHooks, GetBackgroundEventsParams, GetBackgroundEventsResult>;
//# sourceMappingURL=getBackgroundEvents.d.cts.map