/**
 * Single item 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 { FunctionSelect, FunctionWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { FunctionSelect, FunctionWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const functionQueryKey: (id: string | number) => readonly ["function", "detail", string | number];
/**
 * Query hook for fetching a single Function
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useFunctionQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useFunctionQuery<S extends FunctionSelect, TData = {
    function: InferSelectResult<FunctionWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, FunctionSelect>;
} & Omit<UseQueryOptions<{
    function: InferSelectResult<FunctionWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Fetch a single Function without React hooks
 *
 * @example
 * ```ts
 * const data = await fetchFunctionQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchFunctionQuery<S extends FunctionSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, FunctionSelect>;
}): Promise<{
    function: InferSelectResult<FunctionWithRelations, S> | null;
}>;
/**
 * Prefetch a single Function for SSR or cache warming
 *
 * @example
 * ```ts
 * await prefetchFunctionQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchFunctionQuery<S extends FunctionSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, FunctionSelect>;
}): Promise<void>;
