/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { AsyncFactoryFn, ComponentHarness, HarnessPredicate, TestElement } from '@angular/cdk/testing'; import { MatSelectHarness } from '@angular/material/select/testing'; import { PaginatorHarnessFilters } from './paginator-harness-filters'; export declare abstract class _MatPaginatorHarnessBase extends ComponentHarness { protected abstract _nextButton: AsyncFactoryFn; protected abstract _previousButton: AsyncFactoryFn; protected abstract _firstPageButton: AsyncFactoryFn; protected abstract _lastPageButton: AsyncFactoryFn; protected abstract _select: AsyncFactoryFn<(ComponentHarness & { getValueText(): Promise; clickOptions(...filters: unknown[]): Promise; }) | null>; protected abstract _pageSizeFallback: AsyncFactoryFn; protected abstract _rangeLabel: AsyncFactoryFn; /** Goes to the next page in the paginator. */ goToNextPage(): Promise; /** Goes to the previous page in the paginator. */ goToPreviousPage(): Promise; /** Goes to the first page in the paginator. */ goToFirstPage(): Promise; /** Goes to the last page in the paginator. */ goToLastPage(): Promise; /** * Sets the page size of the paginator. * @param size Page size that should be select. */ setPageSize(size: number): Promise; /** Gets the page size of the paginator. */ getPageSize(): Promise; /** Gets the text of the range labe of the paginator. */ getRangeLabel(): Promise; } /** Harness for interacting with a standard mat-paginator in tests. */ export declare class MatPaginatorHarness extends _MatPaginatorHarnessBase { /** Selector used to find paginator instances. */ static hostSelector: string; protected _nextButton: AsyncFactoryFn; protected _previousButton: AsyncFactoryFn; protected _firstPageButton: AsyncFactoryFn; protected _lastPageButton: AsyncFactoryFn; protected _select: AsyncFactoryFn; protected _pageSizeFallback: AsyncFactoryFn; protected _rangeLabel: AsyncFactoryFn; /** * Gets a `HarnessPredicate` that can be used to search for a `MatPaginatorHarness` that meets * certain criteria. * @param options Options for filtering which paginator instances are considered a match. * @return a `HarnessPredicate` configured with the given options. */ static with(options?: PaginatorHarnessFilters): HarnessPredicate; }