import { ContentContainerComponentHarness, HarnessPredicate } from '@angular/cdk/testing'; import { CellHarnessFilters, HeaderCellHarnessFilters, RowCellHarnessFilters } from './mat-datatable-harness-filters'; export declare abstract class _MatCellHarnessBase extends ContentContainerComponentHarness { /** * Checks if the specified nullable boolean value matches the given value. * @param value The nullable boolean value to check, or a Promise resolving to the * nullable boolean value. * @param pattern The boolean the value is expected to match. If `pattern` is `null`, * the value is expected to be `null`. * @returns Whether the value matches the pattern. */ static booleanMatches(value: boolean | null | Promise, pattern: boolean | null): Promise; /** * Gets the cell's text. * @returns the text of the cell. */ getText(): Promise; /** * Gets the name of the column that the cell belongs to. * @returns the name of the column of the cell. */ getColumnName(): Promise; /** * Gets the cell's column width in 'px' (with padding). * @returns the width of the header cell. */ getColumnWidth(): Promise; } /** Harness for interacting with a mat-datatable cell of a row. */ export declare class MatRowCellHarness extends _MatCellHarnessBase { /** The selector for the host element of a `MatRowCellHarness` instance. */ static hostSelector: string; /** * Gets a `HarnessPredicate` that can be used to search for a table cell with specific attributes. * @param options - Options for narrowing the search * @returns a `HarnessPredicate` configured with the given options. */ static with(options?: RowCellHarnessFilters): HarnessPredicate; /** * Check, if cell is defined as 'showAsSingleLine'. * @returns true, if cell is shown as single line */ isSingleLine(): Promise; } /** Harness for interacting with a mat-datatable cell of a header row. */ export declare class MatHeaderCellHarness extends _MatCellHarnessBase { /** The selector for the host element of a `MatHeaderCellHarness` instance. */ static hostSelector: string; protected resizerElement: import("@angular/cdk/testing").AsyncFactoryFn; protected headerContent: import("@angular/cdk/testing").AsyncFactoryFn; /** * Gets a `HarnessPredicate` that can be used to search for a table header cell with specific * attributes. * @param options - Options for narrowing the search * @returns a `HarnessPredicate` configured with the given options. */ static with(options?: HeaderCellHarnessFilters): HarnessPredicate; /** * Gets the cell's header text. * The method must take the text from the div containing the header title; * otherwise the sorting position would be appended. * @returns the header text of the cell. */ getText(): Promise; /** * Check, if cell is defined as 'resizable'. * @returns true, if cell is resizable */ isResizable(): Promise; /** * Resize header cell (and therefore column) to new width with the mouse. * Important: after the last resizable column of a table there must be at * least 1 column without set 'width' and without 'resizable=true'. * @param newWidth - new width of the column (in px) * @returns promise that completes after resizing the column */ resize(newWidth: number): Promise; } /** Harness for interacting with a mat-datatable cell of a footer row. */ export declare class MatFooterCellHarness extends _MatCellHarnessBase { /** The selector for the host element of a `MatFooterCellHarness` instance. */ static hostSelector: string; /** * Gets a `HarnessPredicate` that can be used to search for a table footer cell with specific * attributes. * @param options Options for narrowing the search * @returns a `HarnessPredicate` configured with the given options. */ static with(options?: CellHarnessFilters): HarnessPredicate; }