/**
 * 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 { PlatformInfraCommitSelect, PlatformInfraCommitWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { PlatformInfraCommitSelect, PlatformInfraCommitWithRelations, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const platformInfraCommitQueryKey: (id: string | number) => readonly ["platforminfracommit", "detail", string | number];
/**
 * Commit history — each commit snapshots a tree root for a store
 *
 * @example
 * ```tsx
 * const { data, isLoading } = usePlatformInfraCommitQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function usePlatformInfraCommitQuery<S extends PlatformInfraCommitSelect, TData = {
    platformInfraCommit: InferSelectResult<PlatformInfraCommitWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, PlatformInfraCommitSelect>;
} & Omit<UseQueryOptions<{
    platformInfraCommit: InferSelectResult<PlatformInfraCommitWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Commit history — each commit snapshots a tree root for a store
 *
 * @example
 * ```ts
 * const data = await fetchPlatformInfraCommitQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchPlatformInfraCommitQuery<S extends PlatformInfraCommitSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, PlatformInfraCommitSelect>;
}): Promise<{
    platformInfraCommit: InferSelectResult<PlatformInfraCommitWithRelations, S> | null;
}>;
/**
 * Commit history — each commit snapshots a tree root for a store
 *
 * @example
 * ```ts
 * await prefetchPlatformInfraCommitQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchPlatformInfraCommitQuery<S extends PlatformInfraCommitSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, PlatformInfraCommitSelect>;
}): Promise<void>;
