/**
 * Named stores — one per version-controlled tree (e.g. one graph, one definition set)
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
import type { InfraStoreSelect, InfraStoreWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { InfraStoreSelect, InfraStoreWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const infraStoreQueryKey: (id: string | number) => readonly ["infrastore", "detail", string | number];
/**
 * Named stores — one per version-controlled tree (e.g. one graph, one definition set)
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useInfraStoreQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useInfraStoreQuery<S extends InfraStoreSelect, TData = {
    infraStore: InferSelectResult<InfraStoreWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, InfraStoreSelect>;
} & Omit<UseQueryOptions<{
    infraStore: InferSelectResult<InfraStoreWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Named stores — one per version-controlled tree (e.g. one graph, one definition set)
 *
 * @example
 * ```ts
 * const data = await fetchInfraStoreQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchInfraStoreQuery<S extends InfraStoreSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, InfraStoreSelect>;
}): Promise<{
    infraStore: InferSelectResult<InfraStoreWithRelations, S> | null;
}>;
/**
 * Named stores — one per version-controlled tree (e.g. one graph, one definition set)
 *
 * @example
 * ```ts
 * await prefetchInfraStoreQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchInfraStoreQuery<S extends InfraStoreSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, InfraStoreSelect>;
}): Promise<void>;
