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