import { ReactElement } from 'react';
export type RenderProp<P extends Record<string, any>, R = ReactElement | null> = (props: P) => R;
/**
 * Component prop takes in a component and turns it into a render prop.
 */
export declare const componentRenderProp: <P extends Record<string, any>, R = ReactElement<any, string | import('react').JSXElementConstructor<any>> | null>(Component: React.ComponentType<P>) => RenderProp<P, R>;
export declare const isRenderProp: <P extends Record<string, any>>(children: React.ReactNode | RenderProp<P>) => children is RenderProp<P>;
//# sourceMappingURL=renderProp.d.ts.map