/** based on framer-motion@4.1.17, Copyright (c) 2018 Framer B.V. */ import * as React from "react"; import { MotionProps } from "./types"; import { RenderComponent, FeatureBundle } from "./features/types"; import { CreateVisualElement } from "../render/types"; import { UseVisualState } from "./utils/use-visual-state"; export interface MotionComponentConfig { preloadedFeatures?: FeatureBundle; createVisualElement?: CreateVisualElement; useRender: RenderComponent; useVisualState: UseVisualState; Component: string | React.ComponentType; } /** * Create a `motion` component. * * This function accepts a Component argument, which can be either a string (ie "div" * for `MotionDiv`), or an actual React component. * * Alongside this is a config option which provides a way of rendering the provided * component "offline", or outside the React render cycle. * * @internal */ export declare function createMotionComponent({ preloadedFeatures, createVisualElement, useRender, useVisualState, Component, }: MotionComponentConfig): React.ForwardRefExoticComponent & React.RefAttributes>;