UNPKG

mcp-wayback-machine

Version:

MCP server and CLI tool for interacting with the Wayback Machine without API keys

24 lines 770 B
/** * HTTP utilities for making API calls to the Wayback Machine */ interface FetchOptions { method?: string; headers?: Record<string, string>; body?: string; timeout?: number; } export declare class HttpError extends Error { readonly status?: number | undefined; readonly response?: string | undefined; constructor(message: string, status?: number | undefined, response?: string | undefined); } /** * Wrapper around fetch with timeout support and error handling */ export declare function fetchWithTimeout(url: string, options?: FetchOptions): Promise<Response>; /** * Parse JSON response with error handling */ export declare function parseJsonResponse<T>(response: Response): Promise<T>; export {}; //# sourceMappingURL=http.d.ts.map