/**
 * The part of a React Query mutation a submit hook actually uses.
 *
 * Structural rather than `UseMutationResult<...>`: the profile submit hooks
 * each take two or three mutations that differ in payload and error type, and
 * all they do with them is `await mutateAsync(body)`. Spelling that out keeps
 * the payload and the response typed — `updateAccountMutation: any` used to
 * make both ends of the call untyped at once.
 */
export interface SaveMutation<TPayload, TResult> {
  mutateAsync: (payload: TPayload) => Promise<TResult>;
}
