/** * A directive that, given a condition, chooses between two inputs: `ifTrue` and `ifFalse`. If * `ifFalse` is omitted (which is allowed), the false case defaults to `undefined`, which won't get * rendered at all inside of an HTML template. * * @category Directives * @example * * ```ts * import {html, defineElement, renderIf} from 'element-vir'; * * const MyElement = defineElement()({ * tagName: 'my-element', * render() { * return html` *
* ${renderIf( * Math.random() > 0.5, * html` * True! * `, * html` * False! * `, * )} *
* `; * }, * }); * ``` */ export declare function renderIf(condition: boolean, ifTrue: TrueCondition, ifFalse?: FalseCondition): TrueCondition | FalseCondition;