import { HttpResponse } from 'vue-resource'; import { Collection } from './Collection'; import { Resource } from './Resource'; import { Resp } from '../../types'; export declare class PageCollection extends Collection { total: number; querySearch: string; currentPage?: number; perPage?: number; orderBy: string; asc: boolean; filter: object; constructor(type: any, filter?: object); /** * gets the last page */ readonly lastPage: number; /** * Serializes the response body of a call to the WebServer * @param promise Any call of VUE RESOURCE */ call(promise: PromiseLike): Promise>; /** * Lists and Paginates the collection according to the config */ search(): Promise>; /** * Changes the orderby */ setOrderBy(column: string): Promise>; /** * Changes the current page * @param val */ setCurrentPage(val: number): Promise>; /** * Searches using query conditions */ searchByQuery(): Promise>; /** * Moves to the previous page */ prevPage(): Promise>; /** * Moves to the next page */ nextPage(): Promise>; }