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