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