import type { Extension } from '@prezly/slate-commons'; import type { SlateEditor } from '@udecode/plate-common'; import { GalleryBookmarkPlaceholderElement } from './elements'; import { ContactPlaceholderElement, CoveragePlaceholderElement, InlineContactPlaceholderElement, StoryBookmarkPlaceholderElement, StoryEmbedPlaceholderElement } from './elements'; import type { FetchOEmbedFn, FrameProps, RemovableFlagConfig, WithMediaGalleryTab } from './types'; export declare const EXTENSION_ID = "PlaceholdersExtension"; export interface Parameters { format?: FrameProps['format']; removable?: RemovableFlagConfig; withAttachmentPlaceholders?: boolean; withContactPlaceholders?: false | Pick; withCoveragePlaceholders?: false | Pick; withEmbedPlaceholders?: false | { fetchOembed: FetchOEmbedFn; }; withGalleryPlaceholders?: boolean | { withMediaGalleryTab: WithMediaGalleryTab; }; withGalleryBookmarkPlaceholders?: false | Pick; withImagePlaceholders?: boolean | { withCaptions: boolean; withMediaGalleryTab: WithMediaGalleryTab; }; withInlineContactPlaceholders?: false | Pick; withMediaPlaceholders?: boolean | { withCaptions: boolean; withMediaGalleryTab: WithMediaGalleryTab; }; withStoryBookmarkPlaceholders?: false | Pick; withStoryEmbedPlaceholders?: false | Pick; withSocialPostPlaceholders?: false | { fetchOembed: FetchOEmbedFn; }; withVideoPlaceholders?: false | { fetchOembed: FetchOEmbedFn; }; withWebBookmarkPlaceholders?: false | { fetchOembed: FetchOEmbedFn; }; withPastedUrlsUnfurling?: false | { fetchOembed: FetchOEmbedFn; isAllowed?(editor: SlateEditor, url: string): boolean; }; } export declare function PlaceholdersExtension({ format, removable, withAttachmentPlaceholders, withContactPlaceholders, withCoveragePlaceholders, withEmbedPlaceholders, withGalleryPlaceholders, withGalleryBookmarkPlaceholders, withImagePlaceholders, withInlineContactPlaceholders, withMediaPlaceholders, withStoryBookmarkPlaceholders, withStoryEmbedPlaceholders, withSocialPostPlaceholders, withPastedUrlsUnfurling: isUnfurlingPastedUrls, withVideoPlaceholders, withWebBookmarkPlaceholders, }?: Parameters): Extension;