export interface RequestOptions { method?: 'GET' | 'POST'; body?: object; headers?: Record; } /** * JSSDK 需要同时兼容 node 和 browser 环境 * 但是在浏览器插件的 background service worker 里只能使用 fetch * 所以采用 fetch + axios 方案,并且优先使用 fetch */ declare const _default: (url: string, options: RequestOptions) => Promise; export default _default;