Callback type for progress updates
typedef OnProgressUpdate = void Function(int step, int totalSteps, Duration elapsed);