/** * Shared internal utilities for query and mutation factories. */ import type { QueryKey } from "@tanstack/react-query"; /** * Internal query-key segment used to distinguish per-call factory args * from the base query key. Not part of the public API. */ export declare const FACTORY_KEY_ARGS_QUERY_KEY = "__ic_reactor_factory_key_args"; /** * Merge a base query key, optional per-call query key, and optional key-args * into a single query key array. * * Used by createInfiniteQueryFactory and createSuspenseInfiniteQueryFactory to * ensure each unique set of factory args produces a distinct cache entry. */ export declare function mergeFactoryQueryKey(baseQueryKey?: QueryKey, callQueryKey?: QueryKey, keyArgs?: unknown): QueryKey | undefined; /** * Build a chained select function that first applies the config-level select * (if any) and then the hook-level select (if any). * * This enables `createQuery` / `createSuspenseQuery` to support two-level * select chaining without duplicating the logic. */ export declare function buildChainedSelect(configSelect: ((data: TData) => TSelected) | undefined, hookSelect: ((data: TSelected) => TFinal) | undefined): (rawData: TData) => TSelected | TFinal; //# sourceMappingURL=utils.d.ts.map