@metamask/snaps-rpc-methods
Version:
MetaMask Snaps JSON-RPC method implementations
18 lines • 712 B
text/typescript
import type { PermittedHandlerExport } from "@metamask/permission-controller";
import type { GetClientStatusResult } from "@metamask/snaps-sdk";
import type { JsonRpcParams } from "@metamask/utils";
/**
* `snap_getClientStatus` returns useful information about the client running the snap.
*/
export declare const getClientStatusHandler: PermittedHandlerExport<GetClientStatusHooks, JsonRpcParams, GetClientStatusResult>;
export type GetClientStatusHooks = {
/**
* @returns Whether the client is locked or not.
*/
getIsLocked: () => boolean;
/**
* @returns Whether the client is active or not.
*/
getIsActive: () => boolean;
};
//# sourceMappingURL=getClientStatus.d.mts.map