import { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, SimpleChanges } from '@angular/core'; import { Observable } from 'rxjs'; import { PageEvent } from './paginator.interface'; export declare class PaginatorComponent implements OnChanges, OnDestroy { private changeDetector; /** The current page number */ get page(): number; set page(value: number); private _page; /** The total numbers of items to be paged */ length: number; /** The numbers of items per page */ perPage: number; /** The range size of items to display */ range: number; /** Whether to disable the paginator */ disabled: boolean; /** Whether to show ellipsis */ showEllipsis: boolean; /** Whether to show boundary first and last page links */ showBoundaryLinks: boolean; /** Emits whenever the page number changes */ pageChange: EventEmitter; /** Notifies when the component is destroyed */ private destroyed$; /** Padding to be applied to the start and length of the range */ private rangePadding; /** The total number of pages */ pageCount: number; /** Observable containing the page numbers to be displayed */ pageNumbers$: Observable; class: string; role: string; tplFirstRef: any; tplPrevRef: any; tplNextRef: any; tplLastRef: any; tplEllipsisRef: any; constructor(changeDetector: ChangeDetectorRef); ngOnChanges(changes: SimpleChanges): void; /** * Get the page numbers. */ getPages(): void; /** * Calculates the padding to be applied on the range. * * Pages that would've been shown on the left side are added to the right - and * the other way around. This way we always show an equal amount of pages. */ getRangePadding(length: number): number[]; /** * The start of range. */ get rangeStart(): number; /** * The length of the range. */ get rangeLength(): number; /** * Gets the total number of pages. */ getPageCount(): number; /** * Determine whether the given page number is valid. */ isPageNumber(page: number): boolean; /** * Selects the given page number. */ selectPage(page: number, event: any): void; /** * Whether the paginator should show ellipsis for previous pages. */ get hasPrevEllipsis(): boolean; /** * Whether the paginator should show ellipsis for next pages. */ get hasNextEllipsis(): boolean; /** * Whether the previous links should be disabled. */ get prevDisabled(): boolean; /** * Whether the next links should be disabled. */ get nextDisabled(): boolean; /** * Invoked when the component is destroyed. */ ngOnDestroy(): void; /** * Emits an event notifying that a change of the paginator's properties has been triggered. */ private emitPageEvent; }