/**
 * User email addresses with verification and primary-email management
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
import type { EmailSelect, EmailWithRelations, EmailPatch } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { EmailSelect, EmailWithRelations, EmailPatch } from '../../orm/input-types';
/**
 * User email addresses with verification and primary-email management
 *
 * @example
 * ```tsx
 * const { mutate, isPending } = useUpdateEmailMutation({
 *   selection: { fields: { id: true, name: true } },
 * });
 *
 * mutate({ id: 'value-here', emailPatch: { name: 'Updated' } });
 * ```
 */
export declare function useUpdateEmailMutation<S extends EmailSelect>(params: {
    selection: {
        fields: S & EmailSelect;
    } & HookStrictSelect<NoInfer<S>, EmailSelect>;
} & Omit<UseMutationOptions<{
    updateEmail: {
        email: InferSelectResult<EmailWithRelations, S>;
    };
}, Error, {
    id: string;
    emailPatch: EmailPatch;
}>, 'mutationFn'>): UseMutationResult<{
    updateEmail: {
        email: InferSelectResult<EmailWithRelations, S>;
    };
}, Error, {
    id: string;
    emailPatch: EmailPatch;
}>;
