using System;
using System.Threading;
using System.Threading.Tasks;

namespace SortVisualizer;

public interface ISortAlgorithm
{
    string Name { get; }

    Task Sort(
        int[] array,
        Action refresh,
        int delay,
        Action<int> playSound,
        CancellationToken token
    );
}
