/** based on framer-motion@4.1.17, Copyright (c) 2018 Framer B.V. */ export type { AnimatePresenceProps } from "./types.js"; /** * `AnimatePresence` enables the animation of components that have been removed from the tree. * * You can provide an array T[] to the `list` prop, where each item has to have a unique `key` attribute. Via slot prop `item` * single items of the array are passed down to children, so that for each array item one component is rendered. * * Alternatively you can leave `list` undefined and supply a boolean to the `show` prop. If `true`, the child is rendered. * * @motion * * Any `motion` components that have an `exit` property defined will animate out when removed from * the tree. * * ```jsx * import { motion, AnimatePresence } from 'svelte-motion' * const items = [ * {key:1}, * {key:2}, * {key:3} * ] * * * * ) * ``` * * You can sequence exit animations throughout a tree using variants. * * If a child contains multiple `Motion` components with `exit` props, it will only unmount the child * once all `motion` components have finished animating out. Likewise, any components using * `usePresence` all need to call `safeToRemove`. * * @public */ export type ConditionalGeneric = T extends { key: any; } ? T : { key: 1; }; export { default as AnimatePresence } from './AnimatePresence.svelte'; export { PresenceChild } from './PresenceChild/index.js'; //# sourceMappingURL=index.d.ts.map