import type { default as Table } from '../table/baseTable'; /** * Size getters, mixed into every `Table` type. */ export interface SizeGetters { getRowHeight(sourceRow: number): number; getColumnHeaderHeight(level: number): number; getColumnWidth(sourceColumn: number): number; hasDefinedSize(): boolean; getWidth(): number; getHeight(): number; getTotalWidth(): number; getTotalHeight(): number; isVisible(): boolean; } declare const sizeGetters: { /** * @param {number} sourceRow The physical row index. * @returns {number} * @this Table */ getRowHeight(this: Table, sourceRow: number): number | undefined; /** * @param {number} level The column level. * @returns {number} * @this Table */ getColumnHeaderHeight(this: Table, level: number): number; /** * @param {number} sourceColumn The physical column index. * @returns {number} * @this Table */ getColumnWidth(this: Table, sourceColumn: number): number; /** * Checks if the table has defined size. It returns `true` when the table has width and height * set bigger than `0px`. * * @returns {boolean} * @this Table */ hasDefinedSize(this: Table): boolean; /** * Gets table's width. The returned width is the width of the rendered cells that fit in the * current viewport. The value may change depends on the viewport position (scroll position). * * @returns {number} * @this Table */ getWidth(this: Table): number; /** * Gets table's height. The returned height is the height of the rendered cells that fit in the * current viewport. The value may change depends on the viewport position (scroll position). * * @returns {number} * @this Table */ getHeight(this: Table): number; /** * Gets table's total width. The returned width is the width of all rendered cells (including headers) * that can be displayed in the table. * * @returns {number} * @this Table */ getTotalWidth(this: Table): number; /** * Gets table's total height. The returned height is the height of all rendered cells (including headers) * that can be displayed in the table. * * @returns {number} * @this Table */ getTotalHeight(this: Table): number; /** * Checks if the table is visible. It returns `true` when the holder element (or its parents) * has CSS 'display' property different than 'none'. * * @returns {boolean} * @this Table */ isVisible(this: Table): boolean; }; export default sizeGetters;