import "../_dnt.polyfills.js"; type OrLowercase = T | Lowercase; /** * Request options */ export interface FetchData { method?: OrLowercase<"GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | "TRACE">; headers?: Record; data?: Record | Uint8Array; params?: Record; raw_data?: boolean; signal?: AbortSignal; } export type RequestFunction = (url: string, options: RequestInit) => Promise; export declare abstract class RequestClient { abstract request(url: string, options: FetchData): Promise; auth_header: string | null; request_json(url: string, options: FetchData): Promise; } export declare class FetchClient extends RequestClient { constructor(); private do_fetch; request(path: string, options: FetchData): Promise; } export {}; //# sourceMappingURL=request.d.ts.map