UNPKG

@metamask/snaps-sdk

Version:

A library containing the core functionality for building MetaMask Snaps

15 lines 460 B
import type { BaseProvider } from "@metamask/providers"; import type { RequestFunction } from "./methods/index.mjs"; type BaseProviderInstance = InstanceType<typeof BaseProvider>; /** * The `window.ethereum` provider for Snaps. */ export type SnapsEthereumProvider = Pick<BaseProviderInstance, 'request'>; /** * The `window.snap` provider. */ export type SnapsProvider = { request: RequestFunction; }; export {}; //# sourceMappingURL=provider.d.mts.map