import { FragmentOptions } from '../util/queryUtils.js'; /** * Result of fragment generation containing both the fragment strings and metadata. */ type FragmentResult = { fragments: string[]; includesDamAssetsFragments: boolean; }; export type ItemsResponse = { _Content: { items: ({ __typename: string; _metadata: { variation: string; }; } & T)[]; }; }; /** * Builds a GraphQL fragment for the requested content-type **and** returns every nested fragment it depends on. * @param contentTypeName Name/key of the content-type to expand. * @param visited Set of fragment names already on the stack. * @param suffix Optional suffix for the fragment name. * @param options Fragment generation options (damEnabled, maxFragmentThreshold, includeBaseFragments). * @returns Fragment result containing fragments array and DAM flag. */ export declare const createFragment: (contentTypeName: string, visited?: Set, suffix?: string, options?: FragmentOptions) => FragmentResult; /** * Generates a complete GraphQL query for fetching one item. * * @param contentType - The key of the content type to query. * @param damEnabled - Whether DAM assets are enabled (default: false). * @param maxFragmentThreshold - Maximum fragment threshold for warnings. * @param expandContracts - Enable or disable contract expansion. * @returns A string representing the GraphQL query. */ export declare const createSingleContentQuery: (contentType: string, damEnabled?: boolean, maxFragmentThreshold?: number, expandContracts?: boolean) => string; /** * Generates a complete GraphQL query for fetching multiple items. * All items must have the same content type * * @param contentType - The key of the content type to query. * @param damEnabled - Whether DAM assets are enabled (default: false). * @param maxFragmentThreshold - Maximum fragment threshold for warnings. * @param expandContracts - Enable or disable contract expansion. * @returns A string representing the GraphQL query. */ export declare const createMultipleContentQuery: (contentType: string, damEnabled?: boolean, maxFragmentThreshold?: number, expandContracts?: boolean) => string; export {};