import { ApolloClient, DocumentNode, NormalizedCacheObject } from '@apollo/client'; import { Catalog, Treatment } from '../types'; /** * GetCatalogs options * @param fragment Allows you to override the default query to request more fields */ export interface GetCatalogsOptions { fragment?: Record; } /** * GetCatalog options * @param id The id of the catalog to fetch * @param fragment Allows you to override the default query to request more fields */ export interface GetCatalogOptions { id: string; fragment?: Record; } /** * AddToCatalogOptions options * @param fragment Allows you to override the default query to request more fields */ export interface AddToCatalogOptions { fragment?: Record; } /** * RemoveFromCatalogOptions options * @param fragment Allows you to override the default query to request more fields */ export interface RemoveFromCatalogOptions { fragment?: Record; } /** * Contains various methods for Photon Catalogs */ export declare class CatalogQueryManager { private apollo; /** * @param apollo - An Apollo client instance */ constructor(apollo: ApolloClient | ApolloClient); /** * Retrieves all catalogs based on currently authenticated organization * @param options - Query options * @returns */ getCatalogs({ fragment }?: GetCatalogsOptions): Promise>; /** * Retrieves catalog by id * @param options - Query options * @returns */ getCatalog({ id, fragment }?: GetCatalogOptions): Promise>; /** * Adds a treatment to a catalog * @param options - Query options * @returns */ addToCatalog({ fragment }: AddToCatalogOptions): import("../utils").MakeMutationReturn<{ addToCatalog: Treatment; } | null | undefined>; /** * Removes a treatment from a catalog * @param options - Query options * @returns */ removeFromCatalog({ fragment }: RemoveFromCatalogOptions): import("../utils").MakeMutationReturn<{ removeFromCatalog: Treatment; } | null | undefined>; }