/// type BatchFunction = (...props: any[]) => React.ReactNode; type BatchRecord = { [K in string]: BatchRecord | BatchFunction; }; type BatchResult = { readonly [K in Capitalize]: T[K]; }; declare function batch(components: T): BatchResult; export { batch };