/**
 * Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
import type { ResourceSelect, ResourceWithRelations, ResourcePatch } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { ResourceSelect, ResourceWithRelations, ResourcePatch } from '../../orm/input-types';
/**
 * Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace
 *
 * @example
 * ```tsx
 * const { mutate, isPending } = useUpdateResourceMutation({
 *   selection: { fields: { id: true, name: true } },
 * });
 *
 * mutate({ id: 'value-here', resourcePatch: { name: 'Updated' } });
 * ```
 */
export declare function useUpdateResourceMutation<S extends ResourceSelect>(params: {
    selection: {
        fields: S & ResourceSelect;
    } & HookStrictSelect<NoInfer<S>, ResourceSelect>;
} & Omit<UseMutationOptions<{
    updateResource: {
        resource: InferSelectResult<ResourceWithRelations, S>;
    };
}, Error, {
    id: string;
    resourcePatch: ResourcePatch;
}>, 'mutationFn'>): UseMutationResult<{
    updateResource: {
        resource: InferSelectResult<ResourceWithRelations, S>;
    };
}, Error, {
    id: string;
    resourcePatch: ResourcePatch;
}>;
