/** based on framer-motion@4.1.17, Copyright (c) 2018 Framer B.V. */ import type { MotionComponentConfig } from "../../motion/index.js"; import type { MotionProps } from "../../motion/types.js"; /** * I'd rather the return type of `custom` to be implicit but this throws * incorrect relative paths in the exported types and API Extractor throws * a wobbly. * * @internal */ export type CustomDomComponent> = Component<(Props & MotionProps) | (SVGElement | HTMLElement)>; export interface CustomMotionComponentConfig { forwardMotionProps?: boolean; } export type CreateConfig = >(Component: string | Component, config: CustomMotionComponentConfig) => MotionComponentConfig; /** * Convert any React component into a `motion` component. The provided component * **must** use `React.forwardRef` to the underlying DOM component you want to animate. * * ```jsx * const Component = React.forwardRef((props, ref) => { * return
* }) * * const MotionComponent = motion(Component) * ``` * * @public */ /** based on framer-motion@4.0.3, Copyright (c) 2018 Framer B.V. */ import type { Component, Snippet } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; import { loadFeatures } from "../../motion/features/definitions.js"; type MotionComponent = Component>; /** * Convert any React component into a `motion` component. The provided component * **must** use `React.forwardRef` to the underlying DOM component you want to animate. * * ```jsx * const Component = React.forwardRef((props, ref) => { * return
* }) * * const MotionComponent = motion(Component) * ``` * * @public */ declare function createMotionProxy(features: Parameters[0]): { [P in keyof SvelteHTMLElements]: MotionComponent

; }; export { createMotionProxy }; //# sourceMappingURL=motion-proxy.d.ts.map