import React from 'react';
import UniversalLoginSDK from '@universal-login/sdk';
export var createServices = function (config, _a) {
    var provider = (_a === void 0 ? {} : _a).provider;
    var providerOrProviderUrl = provider || config.jsonRpcUrl;
    var sdk = new UniversalLoginSDK(config.relayerUrl, providerOrProviderUrl, { applicationInfo: { type: 'laptop' }, observedTokensAddresses: config.tokens, saiTokenAddress: config.saiTokenAddress });
    sdk.featureFlagsService.enableAll(new URLSearchParams(window.location.search).getAll('feature'));
    return {
        sdk: sdk,
        config: config,
    };
};
export var ServiceContext = React.createContext({});
//# sourceMappingURL=createServices.js.map