import React from 'react'; export type EventHandlers = Record>; export type ObjectType = Record; export type HandlerType = Record | undefined>; export type AddNoProps = Omit & A; export type ValueOf = T[keyof T]; export type ValueItem = Value extends (infer U)[] ? U : Value; export type ObjectKey = T extends ObjectType ? keyof T & string : never; export type KeygenResult = string | number; export type KeygenType = ObjectKey | ((data: DataItem, index?: number) => KeygenResult) | true; export type StructKeygenType = ObjectKey | ((data: DataItem, index?: number) => KeygenResult); export type TreeKeygenType = ObjectKey | ((data: DataItem, parentKey: KeygenResult) => KeygenResult); type OptionalKeys = { [K in keyof T]: T extends Record ? never : K; }[keyof T]; type RequiredKeys = Exclude>; export type OptionalToRequired = { [K in OptionalKeys]-?: T[K] | undefined; } & { [K in RequiredKeys]: T[K]; }; export type StructKeygenStringType = ObjectKey | ((data: DataItem, index: string) => KeygenResult); export {}; //# sourceMappingURL=type.d.ts.map