import { EventEmitter } from '../../stencil-public-runtime'; import { SortDirectionType } from './meta/types'; import { MdsTableHeaderCellSortEventDetail } from './meta/event-detail'; /** * @part action - The `mds-button` that sorts the column, with the `label`: only when `sortable` * @part label - The `label` of a column that is not `sortable` * @parent mds-table-header */ export declare class MdsTableHeaderCell { element: HTMLMdsTableHeaderCellElement; private writingDirection; private bodyObserver?; /** * Tells the component to make the cell able to sort the table columns items */ readonly sortable?: boolean; /** * Sets a label for the cell */ readonly label?: string; /** * Names the column in the `mdsTableHeaderCellSort` event, for example the field the back end * sorts by * @example 'createdAt' */ readonly sortKey?: string; /** * Specifies the current sort direction of the column. Set from outside, it sorts the rows like a * click, or only shows the order when the table has `sorting="external"`. */ direction: SortDirectionType; /** * Emits when the user changes the sort direction of the column, at every step of the cycle. With * `sorting="external"` on the table the rows are not moved: the application renders them in the * order asked. */ sortEvent: EventEmitter; componentDidLoad(): void; disconnectedCallback(): void; private table; private body; private rows; private index; private siblings; private hasSortedSibling; private isExternal; private getValue; private sortRows; private markRows; private observeRows; /** * Brings the table in line with `direction`, whoever set it: one sorted column at a time, the * rows in its order unless the table sorts them outside, the marks of the sorted column. */ private applyDirection; private sort; directionHandler(): void; render(): any; }