import { HttpClient, HttpParams } from '@angular/common/http'; import { Observable } from 'rxjs'; /** * Query object for getting typed data. * @export * @class Query * @template T type (usually an interface) of the data coming back */ export declare class Query { private http; private name; constructor(http: HttpClient, name: string); readonly streamParamKey = "stream"; readonly defaultStreamName = "Default"; readonly allStreams = "*"; /** * will retrieve a 2sxc query * remember to set the permissions on the query, so it can be accessed by the group you want */ get(params?: HttpParams, streams?: string | string[]): Observable; /** * Returns either the existing or a new HttpParams object, with the stream parameter appended. * @param params the HttpParams which might be undefined or null * @param streams the array of streams which will be appended to the HttpParams object */ private setStreamParam; }