import type { NewTablePropSet, TablePlugin } from '../types/TablePlugin.js'; export type ValidChildrenKey = { [Key in keyof Item]: Item[Key] extends Item[] ? Key : never; }[keyof Item]; export type ValidChildrenFn = (item: Item) => Item[] | undefined; export interface SubRowsConfig { children: ValidChildrenKey | ValidChildrenFn; } export declare const addSubRows: ({ children, }: SubRowsConfig) => TablePlugin, Record, NewTablePropSet>;