import { ChildNode } from "./Container"; import { PureContainerConfig } from "./PureContainer"; export interface FunctionalComponentConfig extends PureContainerConfig { /** Factory function that creates children based on props. */ childrenFactory?: (props: any) => ChildNode | ChildNode[]; /** Props passed to the children factory. */ props?: any; } /** Brand type to mark CxJS functional components */ export interface CxFunctionalComponent { (props: Props & PureContainerConfig): any; __cxFunctionalComponent: true; } export declare function createFunctionalComponent ChildNode | ChildNode[]>(factory: F): F & { __cxFunctionalComponent: true; }; export declare function createFunctionalComponent(factory: (props: Props) => ChildNode | ChildNode[]): CxFunctionalComponent; export declare function getCurrentInstance(): any; //# sourceMappingURL=createFunctionalComponent.d.ts.map