UNPKG

@translated/lara

Version:

Official Lara SDK for JavaScript and Node.js

16 lines (15 loc) 927 B
import type { AccessKey, AuthToken } from "../../credentials"; import { type BaseURL, type ClientResponse, LaraClient, type MultiPartFile } from "./client"; /** @internal */ export declare class BrowserLaraClient extends LaraClient { private readonly baseUrl; private readonly timeout; constructor(baseUrl: BaseURL, auth: AccessKey | AuthToken, _keepAlive: boolean, timeout?: number); 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; }