/** * Items that just left the data, kept for `duration` milliseconds so they can animate out * instead of vanishing. Changes are detected by key, so a list rebuilt every render is fine, and * each departing item keeps the last place it was drawn. Derived while rendering, so it is never * missing for a frame before its exit starts; an item that comes back stops departing at once. */ export declare function useDeparting(items: readonly T[], keyOf: (item: T) => string, duration: number): readonly T[];