import { Apollo, QueryRef } from 'apollo-angular'; import { Observable, Subject } from 'rxjs'; /** * @description * This class wraps the Apollo Angular QueryRef object and exposes some getters * for convenience. * * @docsCategory services * @docsPage DataService */ export declare class QueryResult = Record> { private queryRef; private apollo; constructor(queryRef: QueryRef, apollo: Apollo); completed$: Subject; private valueChanges; /** * @description * Re-fetch this query whenever the active Channel changes. */ refetchOnChannelChange(): QueryResult; /** * @description * Returns an Observable which emits a single result and then completes. */ get single$(): Observable; /** * @description * Returns an Observable which emits until unsubscribed. */ get stream$(): Observable; get ref(): QueryRef; /** * @description * Returns a single-result Observable after applying the map function. */ mapSingle(mapFn: (item: T) => R): Observable; /** * @description * Returns a multiple-result Observable after applying the map function. */ mapStream(mapFn: (item: T) => R): Observable; }