import { type ReactNode, type RefObject } from 'react'; import { type DataTableHandle } from '../data-table'; import type { FileManagerItem, FileManagerItemAction, FileManagerPermissions } from './types'; export interface ListViewProps { /** Items of the current folder (folders + files), locale-sorted. Filtering * is done by the DataTable's per-column floating filters (name + type). */ items: FileManagerItem[]; selectedIds: string[]; /** Id of the file open in the host preview (e.g. the rail). Reuses the * selected-row tint so the user sees which document is active. */ previewedItemId?: string | null; onSelectionChange: (ids: string[]) => void; onOpen: (item: FileManagerItem) => void; /** Primary single-click / keyboard activation — folders navigate, files * select-single (which fires the host `onPreviewItem`). */ onRowActivate: (item: FileManagerItem) => void; /** Resolves the gate set for a single item. */ can: (item: FileManagerItem) => Required; onRequestRename: (itemId: string) => void; onRequestMove: (itemIds: string[]) => void; onRequestDelete: (itemIds: string[]) => void; onDownload?: (itemIds: string[]) => void; onShare?: (itemIds: string[]) => void; onRequestSignature?: (item: FileManagerItem) => void; /** Consumer actions appended after the built-in kebab entries. */ itemActions?: (item: FileManagerItem) => FileManagerItemAction[]; /** * Nest files under their folders via AG Grid Tree Data (`treeData` + * `getDataPath`). Sets the tree gridOption / autoGroupColumnDef flags only — * inert unless the consumer has registered the Enterprise `TreeDataModule`. * When on, `items` must be the whole descendant subtree (see `descendantsOf`) * and paths are built relative to `currentFolderId`. @default false */ groupByFolder?: boolean; /** * Current folder id (`null` = root) — the anchor for tree-data path building. * Paths run from this folder's direct child down to each item. */ currentFolderId: string | null; /** Forwarded as the DataTable `gridId` (namespaced by the caller). */ gridId?: string; /** Handle to the composed DataTable — the FileManager proxies its * type-filter handle methods and agent `filter` action through this. */ tableRef: RefObject | null>; /** FileManager action cluster rendered in the DataTable's `Toolbar.Actions`. */ toolbarActions: ReactNode; } export declare function ListView({ items, selectedIds, previewedItemId, onSelectionChange, onOpen, onRowActivate, can, onRequestRename, onRequestMove, onRequestDelete, onDownload, onShare, onRequestSignature, itemActions, groupByFolder, currentFolderId, gridId, tableRef, toolbarActions, }: ListViewProps): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=list-view.d.ts.map