<?php

namespace App\Domain\Import;

use App\Services\AsyncMarkdownSplitter;

class MarkdownSplitter
{
    public function __construct(private readonly AsyncMarkdownSplitter $splitter)
    {
    }

    public function split(string $markdown): array
    {
        return $this->splitter->split($markdown);
    }

    public function validate(array $candidates): bool
    {
        return $this->splitter->validate($candidates);
    }
}
