import { type FragmentOptions, type QueryContext } from './queryUtils.js'; import type { FilterShape, VariationMode } from '../graph/filters.js'; /** The lenient option bag the query builders accept. */ type QueryOptions = Partial & FragmentOptions & { filterShape?: FilterShape; variationMode?: VariationMode; publishedOnly?: boolean; }; type QueryGenerator = (contentType: string, options?: QueryOptions) => string; /** * Higher-order function that wraps query generation with caching. * Returns cached query if available, otherwise generates and caches it. */ export declare const withQueryCaching: (queryType: "single" | "multiple", generateQuery: QueryGenerator) => QueryGenerator; export {};