UNPKG

semanticpen

Version:

AI Article Writer & SEO Blog Generator SDK - Professional TypeScript/JavaScript library for automated content creation, AI-powered article generation, and SEO blog writing with SemanticPen

19 lines 1.08 kB
import { SemanticPenConfig, RequestOptions } from '../types'; export declare abstract class BaseClient { protected readonly config: SemanticPenConfig; protected readonly baseUrl: string; protected readonly timeout: number; protected readonly debug: boolean; constructor(config: SemanticPenConfig); private validateConfig; protected getDefaultHeaders(): Record<string, string>; protected buildUrl(endpoint: string): string; protected request<T = any>(endpoint: string, options?: RequestOptions): Promise<T>; protected get<T = any>(endpoint: string, headers?: Record<string, string>): Promise<T>; protected post<T = any>(endpoint: string, body?: any, headers?: Record<string, string>): Promise<T>; protected put<T = any>(endpoint: string, body?: any, headers?: Record<string, string>): Promise<T>; protected delete<T = any>(endpoint: string, headers?: Record<string, string>): Promise<T>; getConfig(): Readonly<SemanticPenConfig>; abstract testConnection(): Promise<boolean>; } //# sourceMappingURL=BaseClient.d.ts.map