/** * ServiceNow HTTP client — native fetch-based, zero external dependencies. * * @module client */ import { ServiceNowConfig } from "./config.js"; export interface ServiceNowError { message: string; detail?: string; status?: number; } export declare class ServiceNowClient { private config; private baseUrl; private authHeader; constructor(config: ServiceNowConfig); get(path: string, params?: Record): Promise; post(path: string, body?: unknown): Promise; patch(path: string, body?: unknown): Promise; put(path: string, body?: unknown): Promise; delete(path: string): Promise<{ status: number; }>; /** * POST binary data (for attachment uploads). */ postBinary(path: string, data: Buffer, contentType: string, params?: Record): Promise; /** * GET raw response (for attachment downloads). */ getRaw(path: string): Promise<{ data: Buffer; contentType: string; }>; private buildUrl; private request; private parseErrorBody; private createError; } //# sourceMappingURL=client.d.ts.map