import type { Block, PartialBlock } from "@blocknote/core"; import type { customSchema } from "./customSchema"; type Schema = typeof customSchema; export type CustomEditorBlock = Block; export type CustomPartialBlock = PartialBlock; export declare function blocksToMarkdown(blocks: CustomEditorBlock[]): string; export declare function fixMalformedImageBlocks(blocks: CustomPartialBlock[]): CustomPartialBlock[]; export interface MarkdownToBlocksOptions { preserveBlankLines?: boolean; } export declare function markdownToBlocks(markdown: string, _options?: MarkdownToBlocksOptions): CustomPartialBlock[]; /** A parsed block with the source lines it came from: `start` inclusive, `end` exclusive. */ export type LocatedBlock = { block: CustomPartialBlock; start: number; end: number; }; /** The parser behind `markdownToBlocks`, keeping each block's source line range. */ export declare function scanMarkdownBlocks(markdown: string): LocatedBlock[]; export {};