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