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