1<?php
2
3/*
4 * This file is part of the league/commonmark package.
5 *
6 * (c) Colin O'Dell <colinodell@gmail.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12namespace League\CommonMark;
13
14use League\CommonMark\Block\Element\Document;
15
16interface DocParserInterface
17{
18    /**
19     * @param string $input
20     *
21     * @throws \RuntimeException
22     *
23     * @return Document
24     */
25    public function parse(string $input): Document;
26}
27