/**
 * Update mutation hook for Policy
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
import type { PolicySelect, PolicyWithRelations, PolicyPatch } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { PolicySelect, PolicyWithRelations, PolicyPatch } from '../../orm/input-types';
/**
 * Mutation hook for updating a Policy
 *
 * @example
 * ```tsx
 * const { mutate, isPending } = useUpdatePolicyMutation({
 *   selection: { fields: { id: true, name: true } },
 * });
 *
 * mutate({ id: 'value-here', policyPatch: { name: 'Updated' } });
 * ```
 */
export declare function useUpdatePolicyMutation<S extends PolicySelect>(params: {
    selection: {
        fields: S & PolicySelect;
    } & HookStrictSelect<NoInfer<S>, PolicySelect>;
} & Omit<UseMutationOptions<{
    updatePolicy: {
        policy: InferSelectResult<PolicyWithRelations, S>;
    };
}, Error, {
    id: string;
    policyPatch: PolicyPatch;
}>, 'mutationFn'>): UseMutationResult<{
    updatePolicy: {
        policy: InferSelectResult<PolicyWithRelations, S>;
    };
}, Error, {
    id: string;
    policyPatch: PolicyPatch;
}>;
