import { type MutationState } from './operation-error.js'; /** Parse fetch body as JSON; surface HTML/misconfigured api_url clearly. */ export declare function parseJsonResponse>(res: Response, url: string, context?: { operation?: string; mutationState?: MutationState; }): Promise; export interface ProxyJsonResponse { status?: boolean; data?: { data: T; }; message?: string; } export declare function postProxyJson(url: string, body: Record, headers: Record, context?: { operation?: string; mutationState?: MutationState; }): Promise;