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