/** * HTTP client for the Rewind API (api.rewind.rest). * All logging goes to stderr -- stdout is reserved for MCP stdio transport. */ export declare class RewindClient { private baseUrl; private apiKey; constructor(baseUrl: string, apiKey: string); get(path: string, params?: Record): Promise; /** * Fetch binary content directly from a full URL (typically the public image CDN). * No Authorization header -- the CDN is public and cross-origin auth forwarding * was unreliable when routed through the API's redirect endpoint. */ getBinaryFromUrl(url: string): Promise<{ bytes: Uint8Array; mimeType: string; }>; } export declare class RewindApiError extends Error { status: number; statusText: string; body: string; constructor(status: number, statusText: string, body: string); } /** * Create a RewindClient from environment variables. * Throws if required vars are missing. */ export declare function createClientFromEnv(): RewindClient;