@metamask/snaps-sdk
Version:
A library containing the core functionality for building MetaMask Snaps
15 lines • 515 B
text/typescript
import type { ComponentOrElement, InterfaceContext } from "../index.cjs";
/**
* The request parameters for the `snap_createInterface` method.
*
* @property ui - The components to display in the interface.
*/
export type CreateInterfaceParams = {
ui: ComponentOrElement;
context?: InterfaceContext;
};
/**
* The result returned by the `snap_createInterface` method, which is the id of the created interface.
*/
export type CreateInterfaceResult = string;
//# sourceMappingURL=create-interface.d.cts.map