/** based on framer-motion@4.1.17, Copyright (c) 2018 Framer B.V. */ import type { FeatureBundle } from '../../motion/features/types'; export type LazyFeatureBundle = () => Promise; /** * @public */ export interface LazyProps { /** * Can be used to provide a feature bundle synchronously or asynchronously. * * ```jsx * // features.js * import { domAnimations } from "framer-motion" * export default domAnimations * * // index.js * import { LazyMotion, m } from "framer-motion" * * const loadFeatures = import("./features.js") * .then(res => res.default) * * function Component() { * return ( * * * * ) * } * ``` * * @public */ features: FeatureBundle | LazyFeatureBundle; /** * If `true`, will throw an error if a `motion` component renders within * a `LazyMotion` component. * * ```jsx * // This component will throw an error that explains using a motion component * // instead of the m component will break the benefits of code-splitting. * function Component() { * return ( * * * * ) * } * ``` * * @public */ strict?: boolean; } //# sourceMappingURL=types.d.ts.map