import { createMaskSDKChannel , BridgeAPI , UserScriptAPI , serializer , InitInformation } from '../shared' ; import { AsyncCall } from 'async-call-rpc/base.min' ; const self = { request_init : null ! , } ; export const readyPromise = new Promise < InitInformation > ( ( resolve ) => { self . request_init = async ( init ) => resolve ( init ) ; } ) ; export const contentScript = AsyncCall < BridgeAPI > ( self , { channel : createMaskSDKChannel ( 'user' ) , serializer , } ) ;