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 renderProp: <P extends Record<string, any>, R = ReactElement | 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