import type { AnimatePresenceProps } from "./types.js"; import type { MotionState } from "../../state/motion-state.js"; import { Context } from "../../vendor/runed/index.js"; import { motionExit } from "../../animation/transition.svelte.js"; export interface PresenceContext { initial?: boolean; custom?: any; presenceId?: string; onMotionExitComplete?: (container: HTMLElement | null, state: MotionState) => void; /** * Svelte-specific: the exit transition estimator used by Motion components * to keep the DOM node alive for the duration of the exit animation. */ transition?: typeof motionExit; } export declare const AnimatePresenceContext: Context; export declare function useAnimatePresence(props: AnimatePresenceProps, onMotionExitComplete?: PresenceContext["onMotionExitComplete"]): PresenceContext;