import { Observable } from 'rxjs/Observable'; import { WpHttp } from '../../classes/wp-http.class'; import { CollectionInterface, CollectionResponse } from './collection.interface'; import { WpPagination } from '../../classes/wp-pagination.class'; export declare class CollectionService implements CollectionInterface { private http; private endpoint; /** Request Parameter */ args: any; /** Collection Pagination Properties */ pagination: WpPagination; items: any[]; constructor(http: WpHttp, endpoint: string); /** * Get the collection * @param args * @returns {Observable} */ get(args?: any): Observable; /** * Get next page of the collection combined with current collection * @returns {any} */ more(): Observable; /** * Get next page of the collection * @returns {any} */ next(): Observable; /** * Get prev page of the collection * @returns {any} */ prev(): Observable; /** * Fires the final request * @returns {Observable} */ private fetch(); /** * Set the pagination from collection response headers * @param headers * @returns {Pagination} */ private setPagination; }