package ext // Browser extension API stubs (browser.storage.local, browser.runtime). // Moxie JS backend replaces these with calls to ext.mjs. // StorageGet retrieves a value from browser.storage.local. func StorageGet(key string, fn func(string)) { panic("jsbridge") } // StorageSet stores a key-value pair in browser.storage.local. func StorageSet(key, value string) { panic("jsbridge") } // StorageRemove removes a key from browser.storage.local. func StorageRemove(key string) { panic("jsbridge") } // OnMessage registers a handler for browser.runtime.onMessage. // fn receives (method, paramsJSON, senderTabID, respond). // respond must be called exactly once with the response JSON string. func OnMessage(fn func(string, string, int, func(string))) { panic("jsbridge") } // SendMessageToTab sends a message to a specific tab's content script. func SendMessageToTab(tabID int, msg string) { panic("jsbridge") } // GetActiveTab gets the active tab's ID and URL. func GetActiveTab(fn func(int, string)) { panic("jsbridge") } // ConsoleLog logs a message to the browser console (extension background). func ConsoleLog(msg string) { panic("jsbridge") } // SessionGet retrieves a value from sessionStorage (in-page mode only). func SessionGet(key string, fn func(string)) { panic("jsbridge") } // SessionSet stores a key-value pair in sessionStorage (in-page mode only). func SessionSet(key, value string) { panic("jsbridge") } // IsInPage returns true when running as in-page signer (not extension). func IsInPage() bool { panic("jsbridge") }