import type { string_markdown } from '../../types/string_markdown';
/**
 * Extracts code block from markdown.
 *
 * - When there are multiple or no code blocks the function throws a `ParseError`
 *
 * Note: There are multiple similar function:
 * - `extractBlock` just extracts the content of the code block which is also used as build-in function for postprocessing
 * - `extractJsonBlock` extracts exactly one valid JSON code block
 * - `extractOneBlockFromMarkdown` extracts exactly one code block with language of the code block
 * - `extractAllBlocksFromMarkdown` extracts all code blocks with language of the code block
 *
 * @throws {ParseError} if there is not exactly one code block in the markdown
 *
 * @public exported from `@promptbook/markdown-utils`
 */
export declare function extractBlock(markdown: string_markdown): string;
