/**
 * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
import type { AppPermissionSelect, AppPermissionWithRelations, AppPermissionPatch } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { AppPermissionSelect, AppPermissionWithRelations, AppPermissionPatch, } from '../../orm/input-types';
/**
 * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control
 *
 * @example
 * ```tsx
 * const { mutate, isPending } = useUpdateAppPermissionMutation({
 *   selection: { fields: { id: true, name: true } },
 * });
 *
 * mutate({ id: 'value-here', appPermissionPatch: { name: 'Updated' } });
 * ```
 */
export declare function useUpdateAppPermissionMutation<S extends AppPermissionSelect>(params: {
    selection: {
        fields: S & AppPermissionSelect;
    } & HookStrictSelect<NoInfer<S>, AppPermissionSelect>;
} & Omit<UseMutationOptions<{
    updateAppPermission: {
        appPermission: InferSelectResult<AppPermissionWithRelations, S>;
    };
}, Error, {
    id: string;
    appPermissionPatch: AppPermissionPatch;
}>, 'mutationFn'>): UseMutationResult<{
    updateAppPermission: {
        appPermission: InferSelectResult<AppPermissionWithRelations, S>;
    };
}, Error, {
    id: string;
    appPermissionPatch: AppPermissionPatch;
}>;
