This repository has been archived on 2026-03-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
openclaw-extensions/wecom/node_modules/@line/bot-sdk/dist/cjs/http-fetch.d.ts
T

27 lines
1.4 KiB
TypeScript

import { Readable } from "node:stream";
export interface FetchRequestConfig {
headers?: Record<string, string>;
}
interface httpFetchClientConfig {
baseURL: string;
defaultHeaders: Record<string, string>;
}
export declare function convertResponseToReadable(response: Response): Readable;
export declare function normalizeHeaders(headers: Record<string, string> | undefined): Record<string, string>;
export declare function mergeHeaders(base: Record<string, string> | undefined, override: Record<string, string> | undefined): Record<string, string>;
export default class HTTPFetchClient {
private readonly baseURL;
private readonly defaultHeaders;
constructor(config: httpFetchClientConfig);
get<T>(url: string, params?: any): Promise<Response>;
post(url: string, body?: any, config?: Partial<FetchRequestConfig>): Promise<Response>;
put(url: string, body?: any, config?: Partial<FetchRequestConfig>): Promise<Response>;
postForm(url: string, body?: any): Promise<Response>;
postFormMultipart(url: string, form: FormData): Promise<Response>;
putFormMultipart(url: string, form: FormData, config?: Partial<FetchRequestConfig>): Promise<Response>;
postBinaryContent(url: string, body: Blob): Promise<Response>;
delete(url: string, params?: any): Promise<Response>;
private checkResponseStatus;
}
export {};
//# sourceMappingURL=http-fetch.d.ts.map