import type { TableFeature } from "../core/table.js"; import type { Column, OnChangeFn, RowData, Updater } from "../types.js"; export interface ColumnOrderTableState { columnOrder: ColumnOrderState; } export type ColumnOrderState = string[]; export interface ColumnOrderOptions { /** * If provided, this function will be called with an `updaterFn` when * `state.columnOrder` changes. This overrides the default internal state * management, so you will need to persist the state change either fully or * partially outside the table. */ onColumnOrderChange?: OnChangeFn; } export interface ColumnOrderDefaultOptions { onColumnOrderChange: OnChangeFn; } export interface ColumnOrderInstance { /** @internal */ _getOrderColumnsFn: () => (columns: Column[]) => Column[]; /** * Resets the `columnOrder` state to `initialState.columnOrder`, or `true` can * be passed to force a default blank state reset to `[]`. */ resetColumnOrder: (defaultState?: boolean) => void; /** * Sets or updates the `state.columnOrder` state. */ setColumnOrder: (updater: Updater) => void; } export declare const Ordering: TableFeature; //# sourceMappingURL=ordering.d.ts.map