import { type RefObject } from "react"; interface UseMoveFocusAfterFileRemovalProps { statusListRef: RefObject; fallbackRef: RefObject; /** Runs just before the removal announcement is shown, e.g. to clear the live region. */ onRemovalAnnouncement: () => void; } /** * Keeps focus in the field when a status action (such as Delete) removes its * card. Call `moveFocusAfterAction` from the action. When it is given an * announcement, that text is exposed as `removalAnnouncement` for the caller * to add to the newly focused element's accessible description. */ export default function useMoveFocusAfterFileRemoval({ statusListRef, fallbackRef, onRemovalAnnouncement, }: UseMoveFocusAfterFileRemovalProps): { removalAnnouncement: string; clearRemovalAnnouncement: () => void; moveFocusAfterAction: (element: HTMLElement, announcement?: string) => void; }; export {};