/** * Picks where focus should land inside the status lists: the first status * action, else the first status list, else `fallback` (the Select file * button). */ export declare const getStatusFocusTarget: (container: HTMLElement | null, fallback: HTMLElement | null) => HTMLElement | null; /** * Keeps focus in the field when a status action removes its own card. * * Call it from the action's click handler. On the next frame, if `element` * has been removed, focus moves to the nearest action still in the same * list: the next one, else the previous one, else whatever `getFallback` * returns. If `element` is still in the DOM, nothing happens. * * `onRemoved` receives the target before focus moves, so the caller can add * the removal announcement to the target's description first. */ export default function focusNextAction(element: HTMLElement, getFallback: () => HTMLElement | null, onRemoved?: (focusTarget: HTMLElement | null) => void): void;