/**
 * Single item query hook for View
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
import type { ViewSelect, ViewWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { ViewSelect, ViewWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const viewQueryKey: (id: string | number) => readonly ["view", "detail", string | number];
/**
 * Query hook for fetching a single View
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useViewQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useViewQuery<S extends ViewSelect, TData = {
    view: InferSelectResult<ViewWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, ViewSelect>;
} & Omit<UseQueryOptions<{
    view: InferSelectResult<ViewWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Fetch a single View without React hooks
 *
 * @example
 * ```ts
 * const data = await fetchViewQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchViewQuery<S extends ViewSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, ViewSelect>;
}): Promise<{
    view: InferSelectResult<ViewWithRelations, S> | null;
}>;
/**
 * Prefetch a single View for SSR or cache warming
 *
 * @example
 * ```ts
 * await prefetchViewQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchViewQuery<S extends ViewSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, ViewSelect>;
}): Promise<void>;
