UNPKG

@metis-w/api-client

Version:

Modern TypeScript HTTP API client with dynamic routes, parameterized endpoints, interceptors, and advanced features

23 lines 867 B
import { APIResponse, RequestConfig, ClientError } from "../types"; export interface LoggingOptions { logRequests?: boolean; logResponses?: boolean; logErrors?: boolean; logLevel?: "debug" | "info" | "warn" | "error"; } /** * Request logging interceptor * @param options - Logging configuration */ export declare const requestLoggingInterceptor: (options?: LoggingOptions) => (config: RequestConfig) => RequestConfig; /** * Response logging interceptor * @param options - Logging configuration */ export declare const responseLoggingInterceptor: (options?: LoggingOptions) => (response: APIResponse) => APIResponse; /** * Error logging interceptor * @param options - Logging configuration */ export declare const errorLoggingInterceptor: (options?: LoggingOptions) => (error: ClientError) => ClientError; //# sourceMappingURL=logging.d.ts.map