import { AbstractSortableTableComponent } from "@hmcts/opal-frontend-common/components/abstract/abstract-sortable-table"; import * as i0 from "@angular/core"; export declare abstract class AbstractSortableTablePaginationComponent extends AbstractSortableTableComponent { private readonly injector; private readonly paginationFocusUtilsService; private readonly paginationFocusTargets; /** * Keeps the current page within the available range when the data set or page size changes. */ private readonly clampCurrentPageEffect; currentPageSignal: import("@angular/core").WritableSignal; itemsPerPageSignal: import("@angular/core").WritableSignal; paginationPageTitle: string; readonly pageChangeAnnouncement: import("@angular/core").WritableSignal; startIndexComputed: import("@angular/core").Signal; /** * Computes the end index for the current page of the sorted table data. * Ensures the end index does not exceed the total number of items. * * @returns The zero-based index of the last item to display on the current page. */ endIndexComputed: import("@angular/core").Signal; paginatedTableDataComputed: import("@angular/core").Signal[]>; /** * Focuses the first target rendered for the new page and lets the browser scroll it into view. * Falls back to the main content landmark when the table has no marked focus target. */ private focusNewPageContent; /** * Handles sorting changes and resets the page to the first page. * * @param event - The sorting event containing: * - `key`: The column key to sort by. * - `sortType`: The sorting order, either 'ascending' or 'descending'. * * Resets `currentPageSignal` to 1 and triggers re-sorting of `displayTableDataSignal`. */ onSortChange(event: { key: string; sortType: 'ascending' | 'descending'; }): void; /** * Applies the current filters to the table data. * * Overrides the base implementation to additionally reset the pagination to the first page * after filters are applied. * * @override */ onApplyFilters(): void; /** * Handles the event when the page is changed. * Moves focus to the first marked target, or the main content fallback, after committing a different page. * * @param newPage - The new page number to set. If the provided page number is out of range, * it will be clamped between 1 and the total number of pages. */ onPageChange(newPage: number): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }