import { DataSource } from '@angular/cdk/collections'; import { ComponentFixture } from '@angular/core/testing'; import { TsTableComponent } from '@terminus/ui/table'; import { BehaviorSubject, Observable } from 'rxjs'; export interface TestData { a: string; b: string; c: string; } export declare class FakeDataSource extends DataSource { _dataChange: BehaviorSubject; set data(data: TestData[]); get data(): TestData[]; constructor(); connect(): Observable; disconnect(): void; addData(): void; } /** * Get the instance for a TsTableComponent * * @param fixture - The test fixture * @returns The instance */ export declare function getTableInstance(fixture: ComponentFixture): TsTableComponent; /** * Query elements within another element * * @param element - The element to search within * @param query - The selector to query * @returns An array of Elements */ export declare const getElements: (element: Element, query: string) => Element[]; /** * Get the header row * * @param tableElement - The table element to search within * @returns The table element */ export declare const getHeaderRow: (tableElement: Element) => Element; /** * Return all footer rows * * @param tableElement - The table element to search within * @returns An array of footer rows */ export declare const getFooterRows: (tableElement: Element) => Element[]; /** * Get all row elements * * @param tableElement - The table to search within * @returns An array of row elements */ export declare const getRows: (tableElement: Element) => Element[]; /** * Get all cells within a row * * @param row - The row to search within * @returns An array of cells */ export declare const getCells: (row: Element) => Element[]; /** * Get all header cells * * @param tableElement - The table to search within * @returns An array of header cells */ export declare const getHeaderCells: (tableElement: Element) => Element[]; /** * Get all footer cells * * @param footerRow - The Row to search within * @returns An array of footer cells */ export declare function getFooterCells(footerRow: Element): Element[]; /** * Get all cells within a column * * @param columnName - The name of the column to search for * @param tableElement - The table to search within * @returns An array of column cells */ export declare function getColumnElements(columnName: string, tableElement: Element): HTMLElement[];