UNPKG

@cessnetwork/api

Version:

CESS Chain Interface Implementation in TypeScript

16 lines 769 B
import { GenTokenReq } from "@cessnetwork/types"; export interface TokenResponse { data?: any; success?: boolean; error?: string; status?: number; } export declare function getToken(gatewayUrl: string, genTokenReq: GenTokenReq): Promise<any>; export declare function getTokenWithDetails(gatewayUrl: string, genTokenReq: GenTokenReq): Promise<TokenResponse>; export declare function createFormData(obj: Record<string, any>): URLSearchParams; export declare function postFormData<T = any>(url: string, data: Record<string, any>, options?: { timeout?: number; headers?: Record<string, string>; }): Promise<T>; export declare function getTokenSimplified(gatewayUrl: string, genTokenReq: GenTokenReq): Promise<any>; //# sourceMappingURL=util.d.ts.map