/**
 * 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, CreateApiInput } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { ApiSelect, ApiWithRelations, CreateApiInput } 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 } = useCreateApiMutation({
 *   selection: { fields: { id: true, name: true } },
 * });
 *
 * mutate({ name: 'New item' });
 * ```
 */
export declare function useCreateApiMutation<S extends ApiSelect>(params: {
    selection: {
        fields: S & ApiSelect;
    } & HookStrictSelect<NoInfer<S>, ApiSelect>;
} & Omit<UseMutationOptions<{
    createApi: {
        api: InferSelectResult<ApiWithRelations, S>;
    };
}, Error, CreateApiInput['api']>, 'mutationFn'>): UseMutationResult<{
    createApi: {
        api: InferSelectResult<ApiWithRelations, S>;
    };
}, Error, CreateApiInput['api']>;
