import { type ReactNode } from 'react'; import type { OpenMenu } from '../components/ContextMenu.js'; import type { MenuEntry } from '../components/MenuEntries.js'; import type { TreeNode } from './lib/types.js'; export declare const ROW_HEIGHT_SHORT = 45; export declare const ROW_HEIGHT_TALL = 52.25; export declare function isTwoLineRow(node: TreeNode): boolean; /** Pure function of the node, so the virtualizer sizes rows without measuring. */ export declare function fileRowHeight(node: TreeNode): number; interface FileRowProps { node: TreeNode; icon: ReactNode; /** Target for the table's aria-activedescendant. */ rowId: string; /** True position in the folder, which a windowed table cannot convey from DOM order. */ rowIndex: number; /** The keyboard cursor row. Focus stays on the container, so nothing else marks it. */ active: boolean; /** Makes the row a link to the node. */ href?: string | undefined; checked: boolean; canPreview: boolean; /** The row's menu, given the row, so an action can name it, as a delete does. */ getItems: (row: HTMLTableRowElement | null) => MenuEntry[]; openMenu: OpenMenu; onOpen: (node: TreeNode) => void; onToggleCheck: (node: TreeNode, checked: boolean) => void; onPreview: (node: TreeNode) => void; } export declare function UserRow({ node, icon, href, type, storageCount, getItems, openMenu, onOpen, }: { node: TreeNode; icon: ReactNode; /** Makes the row a link to the user. */ href?: string | undefined; type?: string | undefined; storageCount?: number | undefined; getItems: () => MenuEntry[]; openMenu: OpenMenu; onOpen: (node: TreeNode) => void; }): import("react").JSX.Element; export declare function FileRow({ node, icon, rowId, rowIndex, active, href, checked, canPreview, getItems, openMenu, onOpen, onToggleCheck, onPreview, }: FileRowProps): import("react").JSX.Element; export {};