/**
 * A commit records changes to the repository.
 * @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 { CommitSelect, CommitWithRelations, CommitFilter, CommitOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { CommitSelect, CommitWithRelations, CommitFilter, CommitOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const commitsQueryKey: (variables?: object) => readonly ["commit", "list", object];
/**
 * A commit records changes to the repository.
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useCommitsQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useCommitsQuery<S extends CommitSelect, TData = {
    commits: ConnectionResult<InferSelectResult<CommitWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, CommitFilter, CommitOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, CommitSelect>;
} & Omit<UseQueryOptions<{
    commits: ConnectionResult<InferSelectResult<CommitWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * A commit records changes to the repository.
 *
 * @example
 * ```ts
 * const data = await fetchCommitsQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchCommitsQuery<S extends CommitSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, CommitFilter, CommitOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, CommitSelect>;
}): Promise<{
    commits: ConnectionResult<InferSelectResult<CommitWithRelations, S>>;
}>;
/**
 * A commit records changes to the repository.
 *
 * @example
 * ```ts
 * await prefetchCommitsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchCommitsQuery<S extends CommitSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, CommitFilter, CommitOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, CommitSelect>;
}): Promise<void>;
