first commit

This commit is contained in:
2026-06-09 18:35:55 -03:00
commit 3581e221d0
448 changed files with 519709 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
import type { AuthMode, HttpMethod, JsonObject } from "./types.js";
export type QueryParamValue = string | number | boolean | readonly (string | number | boolean)[] | undefined;
export interface RequestOptions {
method?: HttpMethod;
query?: Record<string, QueryParamValue>;
body?: JsonObject;
}
export declare class HttpClient {
private baseUrl;
private auth;
constructor(baseUrl: string, auth: AuthMode);
getBaseUrl(): string;
setBaseUrl(baseUrl: string): void;
setAuth(auth: AuthMode): void;
getAuth(): AuthMode;
private authorizationHeader;
request<T>(path: string, options?: RequestOptions): Promise<T>;
private executeOnce;
}
//# sourceMappingURL=http.d.ts.map