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