import { ApolloClient, DocumentNode, NormalizedCacheObject } from '@apollo/client'; import { Medication, MedicationFilter } from '../types'; /** * GetMedications options * @param name Filter medications by drug name * @param type Filter medication by type (RX or OTC) * @param code Filter medication by NDC/RxCUI * @param fragment Allows you to override the default query to request more fields */ export interface GetMedicationsOptions { filter?: MedicationFilter; after?: string; first?: number; fragment?: Record; } /** * Contains various methods for Photon Medications */ export declare class MedicationQueryManager { private apollo; /** * @param apollo - An Apollo client instance */ constructor(apollo: ApolloClient | ApolloClient); /** * Retrieves all medications, optionally filtered by name, type, and code * @param options - Query options * @returns */ getMedications({ filter, after, first, fragment }?: GetMedicationsOptions): Promise>; }