/**
 * List 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 { ListSelectionConfig } from '../selection';
import type { IndexSelect, IndexWithRelations, IndexFilter, IndexOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { IndexSelect, IndexWithRelations, IndexFilter, IndexOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const indicesQueryKey: (variables?: object) => readonly ["index", "list", object];
/**
 * Query hook for fetching Index list
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useIndicesQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useIndicesQuery<S extends IndexSelect, TData = {
    indices: ConnectionResult<InferSelectResult<IndexWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, IndexFilter, IndexOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, IndexSelect>;
} & Omit<UseQueryOptions<{
    indices: ConnectionResult<InferSelectResult<IndexWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Fetch Index list without React hooks
 *
 * @example
 * ```ts
 * const data = await fetchIndicesQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchIndicesQuery<S extends IndexSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, IndexFilter, IndexOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, IndexSelect>;
}): Promise<{
    indices: ConnectionResult<InferSelectResult<IndexWithRelations, S>>;
}>;
/**
 * Prefetch Index list for SSR or cache warming
 *
 * @example
 * ```ts
 * await prefetchIndicesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchIndicesQuery<S extends IndexSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, IndexFilter, IndexOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, IndexSelect>;
}): Promise<void>;
