import { type FileUploadStatusProps } from "../file-upload-status"; /** * Calls `onFilesCompleted` with the filenames that have newly transitioned * to `"completed"` since the last render, so the caller can announce them * through one persistent live region. * * Statuses that are already `"completed"` on the first render are treated as a * starting snapshot, so mounting a `FileInput` with existing statuses never * fires an announcement. */ export default function useUploadCompletionAnnouncement(currentStatuses: FileUploadStatusProps[], onFilesCompleted: (filenames: string[]) => void): void;