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