/** * @name renderIf * @author Tyler Benton * @description This function is used to help with condition rendering. * It is a very flexible function so there's many ways you can utilize it. * @arg {*} ...predicates - The conditions on if the element should be displayed or not. * note that you can pass in anything not just a boolean. It will get passed into `is.empty` * so instead of passing in `array.length` just pass in `array`. * @arg {Component, function} - The last argument is always the component or the function * @example passed in an element * render() { * return renderIf(this.props.if, children, ( * ... * )) * } * @example as a callback * render() { * return renderIf(this.props.if, something === 'woohoo', () => ( * ... * )) * } */ export declare function renderIf(...predicates: any): any; //# sourceMappingURL=render-if.d.ts.map