import type { ComponentType, FC } from 'react'; import type * as ParserTypes from '../../../../libs/fspropertybinding'; import type { OpaqueDql } from '../common/unique-props'; export interface IfProps { if?: OpaqueDql; } export interface ElseProps { else?: OpaqueDql; } export declare type WithConditionalProps = ElseProps | IfProps; /** * * A higher order component that returns a new version with the if and else props and determines whether * to render the component based on those props * * @param Parser * @return */ export declare const makeWithConditional: (Parser: typeof ParserTypes) => () => (Component: ComponentType) => FC;