@translated/lara
Version:
Official Lara SDK for JavaScript and Node.js
17 lines (16 loc) • 987 B
TypeScript
import type { AccessKey, AuthToken } from "../../credentials";
import { type BaseURL, type ClientResponse, LaraClient, type MultiPartFile } from "./client";
/** @internal */
export declare class BrowserLaraClient extends LaraClient {
protected readonly sdkName: string;
private readonly baseUrl;
private readonly timeout;
constructor(baseUrl: BaseURL, auth: AccessKey | AuthToken, _keepAlive: boolean, timeout?: number, sessionId?: string);
protected send(method: string, path: string, headers: Record<string, string>, body?: Record<string, any>, streamResponse?: boolean): Promise<ClientResponse>;
protected sendAndGetStream(method: string, path: string, headers: Record<string, string>, body?: Record<string, any>): AsyncGenerator<ClientResponse>;
protected wrapMultiPartFile(file: MultiPartFile): File;
}
export declare class BrowserClient {
static get(url: string, headers: Record<string, string>): Promise<ClientResponse>;
private static send;
}