/**
 * Create mutation hook for View
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
import type { ViewSelect, ViewWithRelations, CreateViewInput } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { ViewSelect, ViewWithRelations, CreateViewInput } from '../../orm/input-types';
/**
 * Mutation hook for creating a View
 *
 * @example
 * ```tsx
 * const { mutate, isPending } = useCreateViewMutation({
 *   selection: { fields: { id: true, name: true } },
 * });
 *
 * mutate({ name: 'New item' });
 * ```
 */
export declare function useCreateViewMutation<S extends ViewSelect>(params: {
    selection: {
        fields: S & ViewSelect;
    } & HookStrictSelect<NoInfer<S>, ViewSelect>;
} & Omit<UseMutationOptions<{
    createView: {
        view: InferSelectResult<ViewWithRelations, S>;
    };
}, Error, CreateViewInput['view']>, 'mutationFn'>): UseMutationResult<{
    createView: {
        view: InferSelectResult<ViewWithRelations, S>;
    };
}, Error, CreateViewInput['view']>;
