import { VSBufferReadableStream } from "../../../common/buffer.js"; /** * Checks if the given error is offline error */ export declare function isOfflineError(error: unknown): boolean; export declare class OfflineError extends Error { constructor(); } export interface IHeaders { "Proxy-Authorization"?: string; "x-operation-id"?: string; "retry-after"?: string; etag?: string; "Content-Length"?: string; "activityid"?: string; "X-Market-User-Id"?: string; [header: string]: string | string[] | undefined; } export interface IRequestOptions { type?: string; url?: string; user?: string; password?: string; headers?: IHeaders; timeout?: number; data?: string; followRedirects?: number; proxyAuthorization?: string; /** * A signal to not cache the response. This may not * be supported in all implementations. */ disableCache?: boolean; } export interface IRequestContext { res: { headers: IHeaders; statusCode?: number; }; stream: VSBufferReadableStream; }