/**
 * Commit history — each commit snapshots a tree root for a store
 * @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 { InfraCommitSelect, InfraCommitWithRelations, InfraCommitFilter, InfraCommitOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { InfraCommitSelect, InfraCommitWithRelations, InfraCommitFilter, InfraCommitOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const infraCommitsQueryKey: (variables?: object) => readonly ["infracommit", "list", object];
/**
 * Commit history — each commit snapshots a tree root for a store
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useInfraCommitsQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useInfraCommitsQuery<S extends InfraCommitSelect, TData = {
    infraCommits: ConnectionResult<InferSelectResult<InfraCommitWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, InfraCommitFilter, InfraCommitOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, InfraCommitSelect>;
} & Omit<UseQueryOptions<{
    infraCommits: ConnectionResult<InferSelectResult<InfraCommitWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Commit history — each commit snapshots a tree root for a store
 *
 * @example
 * ```ts
 * const data = await fetchInfraCommitsQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchInfraCommitsQuery<S extends InfraCommitSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, InfraCommitFilter, InfraCommitOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, InfraCommitSelect>;
}): Promise<{
    infraCommits: ConnectionResult<InferSelectResult<InfraCommitWithRelations, S>>;
}>;
/**
 * Commit history — each commit snapshots a tree root for a store
 *
 * @example
 * ```ts
 * await prefetchInfraCommitsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchInfraCommitsQuery<S extends InfraCommitSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, InfraCommitFilter, InfraCommitOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, InfraCommitSelect>;
}): Promise<void>;
