import { EventEmitter, OnInit } from '@angular/core'; import { Initializable } from '../shared/initializable'; import { PageEvent } from './page-event'; /** * Base Pagination class for shared functionality * */ export declare class BasePaginationComponent extends Initializable implements OnInit { static _DEFAULT_PAGE_SIZE: number; /** * The total number of items to be paged through */ length: number; private _length; private _pageNumber; /** The currently displayed page. *Defaults to 1.* */ pageNumber: number; /** Number of items to display on a page. *Defaults to 20.* */ pageSize: number; private _pageSize; /** Event emitted when the paginator changes the page size or page index. */ readonly page: EventEmitter; /** Emits the new page number when the page number changes. */ readonly pageNumberChange: EventEmitter; /** Emits the new page size when the page size changes. */ readonly pageSizeChange: EventEmitter; ngOnInit(): void; /** * The computed total number of pages */ readonly totalPages: number; readonly _isFirstPage: boolean; readonly _isLastPage: boolean; /** * Changes the page size so that the first item displayed on the page will still be * displayed using the new page size. * * For example, if the page size is 10 and on the second page (items indexed 11-20) then * switching so that the page size is 5 will set the third page as the current page so * that the 11th item will still be displayed. */ _changePageSize(pageSize: number): void; _pageSizeUpdated(): void; private _sanitizePageNumber; private _emitPageEvent; }