import type React from 'react'; export type IfChildrenType = ((props: T) => React.ReactNode) | React.ReactNode; export interface IIfChildrenProps { context: T; children: IfChildrenType; } declare function IfChildren(props: IIfChildrenProps): React.ReactNode; export default IfChildren;