mirror of
https://github.com/Expand-sys/ccashfrontend
synced 2025-12-19 16:12:14 +11:00
23 lines
1.2 KiB
TypeScript
23 lines
1.2 KiB
TypeScript
import { AxiosInstance } from 'axios';
|
|
import { ICCashClient } from './CCashClient.types';
|
|
export declare class CCashClient implements ICCashClient {
|
|
http: AxiosInstance;
|
|
constructor(baseURL?: string | undefined);
|
|
balance(user: string): Promise<number>;
|
|
log(user: string, password: string): Promise<number[]>;
|
|
sendFunds(user: string, password: string, to: string, amount: number): Promise<number>;
|
|
verifyPassword(user: string, password: string): Promise<number>;
|
|
changePassword(user: string, password: string, newPassword: string): Promise<number>;
|
|
setBalance(user: string, password: string, amount: number): Promise<number>;
|
|
help(): Promise<string>;
|
|
ping(): Promise<'pong'>;
|
|
close(password: string): Promise<number>;
|
|
contains(user: string): Promise<number>;
|
|
adminVerifyPassword(password: string): Promise<number>;
|
|
addUser(user: string, password: string): Promise<number>;
|
|
adminAddUser(user: string, password: string, initialPassword: string, initialBalance: number): Promise<number>;
|
|
deleteUser(user: string, password: string): Promise<number>;
|
|
adminDeleteUser(user: string, password: string): Promise<number>;
|
|
private handleResponse;
|
|
private handleExceptions;
|
|
}
|