/**
 * Per-database and per-API CORS origin configuration; typed replacement for api_modules cors JSONB entries
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
import type { CorsSettingSelect, CorsSettingWithRelations, CorsSettingPatch } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { CorsSettingSelect, CorsSettingWithRelations, CorsSettingPatch, } from '../../orm/input-types';
/**
 * Per-database and per-API CORS origin configuration; typed replacement for api_modules cors JSONB entries
 *
 * @example
 * ```tsx
 * const { mutate, isPending } = useUpdateCorsSettingMutation({
 *   selection: { fields: { id: true, name: true } },
 * });
 *
 * mutate({ id: 'value-here', corsSettingPatch: { name: 'Updated' } });
 * ```
 */
export declare function useUpdateCorsSettingMutation<S extends CorsSettingSelect>(params: {
    selection: {
        fields: S & CorsSettingSelect;
    } & HookStrictSelect<NoInfer<S>, CorsSettingSelect>;
} & Omit<UseMutationOptions<{
    updateCorsSetting: {
        corsSetting: InferSelectResult<CorsSettingWithRelations, S>;
    };
}, Error, {
    id: string;
    corsSettingPatch: CorsSettingPatch;
}>, 'mutationFn'>): UseMutationResult<{
    updateCorsSetting: {
        corsSetting: InferSelectResult<CorsSettingWithRelations, S>;
    };
}, Error, {
    id: string;
    corsSettingPatch: CorsSettingPatch;
}>;
