import React from 'react'; declare type Callback = (index?: number) => any; /** * Use in case we need to pass props to children. * @param childrenProps React children * @param propsOrCallback this could be an object or a callback with the index as a parameter */ declare const usePassPropsToChildren: (childrenProps: React.ReactNode, propsOrCallback: React.PropsWithoutRef<{}> | Callback) => { children: React.ReactElement React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)>[] | null | undefined; }; export default usePassPropsToChildren; //# sourceMappingURL=usePassPropsToChildren.d.ts.map