UNPKG

@metamask/snaps-rpc-methods

Version:
16 lines 950 B
import type { PermittedHandlerExport } from "@metamask/permission-controller"; import type { CancelBackgroundEventParams, CancelBackgroundEventResult } from "@metamask/snaps-sdk"; import { type InferMatching } from "@metamask/snaps-utils"; export type CancelBackgroundEventMethodHooks = { cancelBackgroundEvent: (id: string) => void; hasPermission: (permissionName: string) => boolean; }; export declare const cancelBackgroundEventHandler: PermittedHandlerExport<CancelBackgroundEventMethodHooks, CancelBackgroundEventParameters, CancelBackgroundEventResult>; declare const CancelBackgroundEventsParametersStruct: import("@metamask/superstruct").Struct<{ id: string; }, { id: import("@metamask/superstruct").Struct<string, null>; }>; export type CancelBackgroundEventParameters = InferMatching<typeof CancelBackgroundEventsParametersStruct, CancelBackgroundEventParams>; export {}; //# sourceMappingURL=cancelBackgroundEvent.d.cts.map