import { FileListItem, ImageListItem, MediaLists } from "../../headless/extract-media-from-editor-state.js"; interface TextContentBlock { text: string; type: 'text'; } interface ImageContentBlock { alt: string; height?: number; type: 'image'; url: string; width?: number; } interface FileContentBlock { name: string; size?: number; type: 'file'; url: string; } type ContentBlock = TextContentBlock | ImageContentBlock | FileContentBlock; interface ExtractContentBlocksOptions { /** * When an image/file is in `loading` / `pending` / `error` state and thus has no * usable URL, emit a textual placeholder into the surrounding text block instead * of dropping the node silently. * @default true */ emitPlaceholderForUnuploaded?: boolean; } declare const CONTENT_BLOCKS_DATA_TYPE = "content-blocks"; export { CONTENT_BLOCKS_DATA_TYPE, ContentBlock, ExtractContentBlocksOptions, FileContentBlock, ImageContentBlock, type MediaLists, TextContentBlock };