import { Env , MessageSender } from "@keplr-wallet/router" ; export class ContentScriptEnv { static readonly produceEnv = ( sender ) : Env => { const isInternalMsg = sender . id === browser . runtime . id ; return { isInternalMsg , requestInteraction : ( ) => { throw new Error ( "ContentScriptEnv doesn't support `requestInteraction`" ) ; } , } ; } ; }