@awhere/api
Version:
The awesome aWhere API for JavaScript.
37 lines (36 loc) • 972 B
TypeScript
import type { AxiosInstance } from 'axios';
import { Socket } from 'socket.io-client';
interface IBasicAuth {
username: string;
password: string;
aWhereUrl: string;
locale?: string;
request?: AxiosInstance;
socket?: Socket;
}
interface IBasicAuthProps {
username: string;
password: string;
aWhereUrl: string;
locale?: string;
}
declare class BasicAuth implements IBasicAuth {
private _username;
get username(): string;
set username(value: string);
private _password;
get password(): string;
set password(value: string);
private _aWhereUrl;
get aWhereUrl(): string;
set aWhereUrl(value: string);
private _locale?;
get locale(): string | undefined;
set locale(value: string | undefined);
private _request?;
get request(): AxiosInstance | undefined;
private _socket?;
get socket(): Socket | undefined;
constructor(props: IBasicAuthProps);
}
export default BasicAuth;