import type { GraphQlClient } from '@contember/client';
import type { MutationRequestState } from './requestState';
import { JsonObject } from '@contember/binding';
export declare type UseMutationReturn<R, V> = [(variables: V) => Promise<R>, MutationRequestState<R>];
export declare const useMutation: <R, V extends JsonObject<never>>(client: GraphQlClient, query: string, apiToken?: string | undefined, headers?: Record<string, string> | undefined) => UseMutationReturn<R, V>;
//# sourceMappingURL=useMutation.d.ts.map