/**
 * Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
import type { ApiSchemaSelect, ApiSchemaWithRelations, ApiSchemaPatch } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { ApiSchemaSelect, ApiSchemaWithRelations, ApiSchemaPatch, } from '../../orm/input-types';
/**
 * Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API
 *
 * @example
 * ```tsx
 * const { mutate, isPending } = useUpdateApiSchemaMutation({
 *   selection: { fields: { id: true, name: true } },
 * });
 *
 * mutate({ id: 'value-here', apiSchemaPatch: { name: 'Updated' } });
 * ```
 */
export declare function useUpdateApiSchemaMutation<S extends ApiSchemaSelect>(params: {
    selection: {
        fields: S & ApiSchemaSelect;
    } & HookStrictSelect<NoInfer<S>, ApiSchemaSelect>;
} & Omit<UseMutationOptions<{
    updateApiSchema: {
        apiSchema: InferSelectResult<ApiSchemaWithRelations, S>;
    };
}, Error, {
    id: string;
    apiSchemaPatch: ApiSchemaPatch;
}>, 'mutationFn'>): UseMutationResult<{
    updateApiSchema: {
        apiSchema: InferSelectResult<ApiSchemaWithRelations, S>;
    };
}, Error, {
    id: string;
    apiSchemaPatch: ApiSchemaPatch;
}>;
