import { ReactElement } from 'react'; /** * A function child: the parent calls it with the props of the thing being rendered, * so the caller decides the markup while the parent keeps the data and the loop. */ export type RenderProp
, R = ReactElement | null> = (props: P) => R; /** Component prop takes in a component and turns it into a render prop. */ export declare const renderProp:
, R = ReactElement | null>(Component: React.ComponentType
) => RenderProp
; /** @returns true if children is a {@link RenderProp} rather than a rendered node. */ export declare const isRenderProp:
>(children: React.ReactNode | RenderProp
) => children is RenderProp
; //# sourceMappingURL=renderProp.d.ts.map