import { ComponentHarness, BaseHarnessFilters, HarnessPredicate } from '@angular/cdk/testing'; /** Sort direction as exposed by the aria-sort attribute. */ type SortHeaderSortDirection = 'ascending' | 'descending' | 'none'; /** Harness filters for ComSortHeaderHarness. */ interface ComSortHeaderHarnessFilters extends BaseHarnessFilters { /** Filter by the header's text content. */ label?: string | RegExp; /** Filter by the column id (comSortHeader attribute value). */ id?: string | RegExp; /** Filter by the current sort direction. */ sortDirection?: SortHeaderSortDirection; } /** Harness filters for ComSortHarness. */ type ComSortHarnessFilters = BaseHarnessFilters; /** * Harness for interacting with a sort header in tests. */ declare class ComSortHeaderHarness extends ComponentHarness { static hostSelector: string; /** * Gets a HarnessPredicate for matching sort headers. * @param options Filter options. */ static with(options?: ComSortHeaderHarnessFilters): HarnessPredicate; /** Gets the header's text content. */ getLabel(): Promise; /** Gets the column id (comSortHeader attribute value). */ getId(): Promise; /** Gets the current sort direction from aria-sort. */ getSortDirection(): Promise; /** Whether this header is actively sorted (direction is not 'none'). */ isActive(): Promise; /** Whether this header is disabled. */ isDisabled(): Promise; /** Clicks the header to cycle sort direction. */ click(): Promise; /** Focuses the header element. */ focus(): Promise; /** Blurs the header element. */ blur(): Promise; /** Whether the header element is focused. */ isFocused(): Promise; } /** * Harness for interacting with a sort container in tests. */ declare class ComSortHarness extends ComponentHarness { static hostSelector: string; /** * Gets a HarnessPredicate for matching sort containers. * @param options Filter options. */ static with(options?: ComSortHarnessFilters): HarnessPredicate; /** Gets all sort headers, optionally filtered. */ getSortHeaders(filters?: ComSortHeaderHarnessFilters): Promise; /** Gets the actively sorted header, or null if none is sorted. */ getActiveHeader(): Promise; } export { ComSortHarness, ComSortHeaderHarness }; export type { ComSortHarnessFilters, ComSortHeaderHarnessFilters, SortHeaderSortDirection };