@lineai/bluebeam-api
Version:
Your unofficial library for Bluebeam API for human and AI developers. Provides TypeScript support, entity classes, and developer-friendly features. Perfect for AI coders, construction professionals, and document management tasks. Includes comprehensive JS
22 lines (21 loc) • 888 B
TypeScript
/// <reference types="node" />
import { ClientConfig } from '../types/common';
export type HttpRequestOptions = {
readonly method: 'GET' | 'POST' | 'PUT' | 'DELETE';
readonly url: string;
readonly headers?: Record<string, string>;
readonly body?: string | FormData;
readonly isFormData?: boolean;
};
export type HttpResponse<T = unknown> = {
readonly data: T;
readonly status: number;
readonly headers: Record<string, string>;
};
export declare const createHttpClient: (config: ClientConfig) => {
get<T>(endpoint: string): Promise<HttpResponse<T>>;
post<T_1>(endpoint: string, data?: unknown, isFormData?: boolean): Promise<HttpResponse<T_1>>;
put<T_2>(endpoint: string, data?: unknown): Promise<HttpResponse<T_2>>;
delete<T_3>(endpoint: string): Promise<HttpResponse<T_3>>;
};
export type HttpClient = ReturnType<typeof createHttpClient>;