@stratosphere-network/wallet
Version:
Wallet module for StratoSphere SDK
28 lines • 861 B
TypeScript
import { SphereHttpClient } from "./http-client";
import { RequestConfig } from "./types";
export declare abstract class BaseService {
protected httpClient: SphereHttpClient;
private bearerToken?;
constructor(httpClient: SphereHttpClient);
/**
* Set the bearer token for user authentication
*/
setBearerToken(token: string): void;
/**
* Clear the bearer token
*/
clearBearerToken(): void;
/**
* Get the current bearer token
*/
getBearerToken(): string | undefined;
/**
* Make an authenticated request with bearer token
*/
protected authenticatedRequest<T>(config: RequestConfig): Promise<T>;
/**
* Make a public request (no authentication required)
*/
protected publicRequest<T>(config: RequestConfig): Promise<T>;
}
//# sourceMappingURL=base-service.d.ts.map