import type { ReactNode } from 'react'; export interface DataTableViewSelection { selectedIds: readonly string[]; onChange: (ids: string[]) => void; /** Return a localized reason to prevent selection. Permissions remain server-owned. */ unavailableReason?: (row: T) => string | undefined; actions?: (selection: DataTableViewSelectionResult) => ReactNode; } export interface DataTableViewSelectionResult { selectedIds: readonly string[]; /** Only records supplied by the host; not a complete server-side selection. */ selectedRows: readonly T[]; pageSelected: boolean; pagePartiallySelected: boolean; eligiblePageCount: number; isSelected: (row: T) => boolean; unavailableReason: (row: T) => string | undefined; toggle: (row: T) => void; togglePage: () => void; clear: () => void; } export declare const createDataTableSelection: (rows: readonly T[], page: readonly T[], getId: (row: T) => string, selection: DataTableViewSelection | undefined, disabled: boolean) => DataTableViewSelectionResult | undefined; //# sourceMappingURL=data-table-selection-model.d.ts.map