UNPKG

cryo-groupx-sdk

Version:

SDK for group-x.xyz Public API

22 lines (21 loc) 849 B
import { EthAddress } from "./types"; declare const globals: { apiBaseUrl: string; headers: { "User-Agent": string; "Project-Name": string; "Content-Type": string; "Session-Id": string; "IKnow-Agent": string; }; sessionId: string; iknowAgent: string; account: string; }; declare const setSessionInfo: (account: EthAddress, agent: EthAddress, sessionId: string) => void; declare const setApiBaseUrl: (apiBaseUrl: string) => void; declare const setProjectName: (projectName: string) => void; declare const delReq: (uri: string, data: any) => Promise<any>; declare const postReq: (uri: string, data: any) => Promise<any>; declare const getReq: (uri: string) => Promise<any>; export { globals, postReq, getReq, delReq, setApiBaseUrl, setProjectName, setSessionInfo };