/**
 * API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
import type { ApiSelect, ApiWithRelations, ApiPatch } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { ApiSelect, ApiWithRelations, ApiPatch } from '../../orm/input-types';
/**
 * API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings
 *
 * @example
 * ```tsx
 * const { mutate, isPending } = useUpdateApiMutation({
 *   selection: { fields: { id: true, name: true } },
 * });
 *
 * mutate({ id: 'value-here', apiPatch: { name: 'Updated' } });
 * ```
 */
export declare function useUpdateApiMutation<S extends ApiSelect>(params: {
    selection: {
        fields: S & ApiSelect;
    } & HookStrictSelect<NoInfer<S>, ApiSelect>;
} & Omit<UseMutationOptions<{
    updateApi: {
        api: InferSelectResult<ApiWithRelations, S>;
    };
}, Error, {
    id: string;
    apiPatch: ApiPatch;
}>, 'mutationFn'>): UseMutationResult<{
    updateApi: {
        api: InferSelectResult<ApiWithRelations, S>;
    };
}, Error, {
    id: string;
    apiPatch: ApiPatch;
}>;
