/**
 * 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 { ListSelectionConfig } from '../selection';
import type { StoreSelect, StoreWithRelations, StoreFilter, StoreOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { StoreSelect, StoreWithRelations, StoreFilter, StoreOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const storesQueryKey: (variables?: object) => readonly ["store", "list", object];
/**
 * Named stores — one per version-controlled tree (e.g. one graph, one definition set)
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useStoresQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useStoresQuery<S extends StoreSelect, TData = {
    stores: ConnectionResult<InferSelectResult<StoreWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, StoreFilter, StoreOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, StoreSelect>;
} & Omit<UseQueryOptions<{
    stores: ConnectionResult<InferSelectResult<StoreWithRelations, S>>;
}, 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 fetchStoresQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchStoresQuery<S extends StoreSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, StoreFilter, StoreOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, StoreSelect>;
}): Promise<{
    stores: ConnectionResult<InferSelectResult<StoreWithRelations, S>>;
}>;
/**
 * Named stores — one per version-controlled tree (e.g. one graph, one definition set)
 *
 * @example
 * ```ts
 * await prefetchStoresQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchStoresQuery<S extends StoreSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, StoreFilter, StoreOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, StoreSelect>;
}): Promise<void>;
