import { type Cell, type CellData, type Column, type Header, type RowData, type Table, type TableFeature } from '@tanstack/react-table'; import { type MouseEvent as ReactMouseEvent } from 'react'; import type { TDataTableFeatures } from '../types/features.types.js'; import type { CollectedCellActions, DataTableCellActionsContent } from './CellActions.js'; import type { CollectedColumnActions } from './ColumnActions.js'; export declare function table_getHeader(table: Table, headerId: string, orderedHeaderGroups: Header[][]): Header | undefined; /** * Helper function to set the floating menu info in the table state. * @internal */ export declare function table_setFloatingMenuInfo(table: Table, headerId: string | null, columnId: string, rowId: string | null, x: number, y: number): void; /** * Helper function to set the row id for the open menu. * @internal */ export declare function table_setOpenMenuRowId(table: Table, rowId: string | null): void; /** * Helper function to get the row id for the open menu. * @internal */ export declare function table_getOpenMenuRowId(table: Table): string | null; /** * Helper function to get the column actions for a given columnId. * @internal */ export declare function table_getUserActionsForColumn(table: Table, columnId: string): import("./user-actions-types.js").DataTableCellOrColumnActions; /** * Helper function to get the cell actions for a given columnId and rowId. * @internal */ export declare function table_getUserActionsForCell(table: Table, columnId: string, rowId: string): import("./user-actions-types.js").DataTableCellOrColumnActions; /** * Helper function to get the floating menu context menu handler for the user actions feature. * @internal */ export declare function table_getUserActionFloatingMenuContextMenuHandler(table: Table): (event: ReactMouseEvent) => void; /** * Helper function to get the column actions for a given column. * @internal */ export declare function column_getColumnActions(column: Column, columnId: string, columnActionsOption?: CollectedColumnActions | undefined, enableSortingOption?: boolean): import("react").ReactElement>[]; /** * Helper function to get if a column has any column actions. * @internal */ export declare function column_getCanColumnActions(column: Column): boolean; /** * Helper function to get the cell actions for a given columnId. * @internal */ export declare function column_getCellActionsContent(column: Column, columnId: string, cellActionsOptions?: CollectedCellActions): Array>; /** * Helper function to get if the column has any cell actions. * @internal */ export declare function column_getCanCellActions(column: Column): boolean; /** * Helper function to get the cell actions for a given cell. * @internal */ export declare function cell_getCellActions(cell: Cell): (import("react").ReactElement> | null)[]; /** * Constructs the user actions feature for the table, * including API implementations and prototype assignments. * @internal */ export declare function constructUserActionsFeature(): TableFeature; /** * Feature to handle user actions such as column and cell actions, including floating menu context. * @internal */ export declare const DataTableUserActionsFeature: TableFeature; //# sourceMappingURL=UserActions.d.ts.map