import { IEventEmitter } from '@breadstone/mosaik-elements'; import type { ITableSortChangedEventDetail } from '../../../events'; import type { SortDirection } from '../../../Types/SortDirection'; import { CustomElement } from '../../Abstracts/CustomElement'; import { ITableCellElementProps } from './ITableCellElementProps'; declare const TableCellElement_base: (abstract new (...args: Array) => import("../../../Behaviors/Themeable").IThemeableProps) & (abstract new (...args: Array) => import("../../../Behaviors/TextFormattable").ITextFormattableProps) & (abstract new (...args: Array) => import("../../../Behaviors/TextOverflowable").ITextOverflowableProps) & typeof CustomElement & import("../../../Behaviors/Themeable").IThemeableCtor; /** * Table Cell - A single unit within a table's row and column layout. * * @element mosaik-table-cell * * @fires tableSortChanged {TableSortChangedEvent} - Fired when the sort direction of the cell has changed. * * @example * Basic table cell with text: * ```html * * ``` * * @example * Sortable header cell: * ```html * * ``` * * @public */ export declare class TableCellElement extends TableCellElement_base implements ITableCellElementProps { private readonly _tableSortChanged; private _key; private _sorted; private _sortable; private _sortDirection; private _text; private _clickSubscription; /** * @public */ constructor(); /** * Returns the `is` property. * * @public * @static * @readonly */ static get is(): string; /** * Gets or sets the `key` property. * * @public * @attr */ get key(): string; set key(value: string); /** * Gets or sets the `sortable` property. * * @public * @attr */ get sortable(): boolean; set sortable(value: boolean); /** * Gets or sets the `text` property. * * @public * @attr */ get text(): string; set text(value: string); /** * Gets or sets the `sortDirection` property. * * @public * @attr */ get sortDirection(): SortDirection | 'none'; set sortDirection(value: SortDirection | 'none'); /** * Called when the sort direction changes. * Provides reference to `ITableSortChangedEventDetail` as event argument. * * @public * @readonly * @eventProperty * @type IEventEmitter */ get tableSortChanged(): IEventEmitter; /** * @public */ sort(direction: SortDirection | 'none'): void; /** * @public */ unsort(): void; /** * @public * @override */ attributeChangedCallback(name: keyof TableCellElement, oldValue: string, newValue: string): void; /** * @private */ private handleSort; } /** * @public */ export declare namespace TableCellElement { type Props = ITableCellElementProps; } /** * @public */ declare global { interface HTMLElementTagNameMap { 'mosaik-table-cell': TableCellElement; } } export {}; //# sourceMappingURL=TableCellElement.d.ts.map