import type { LinkPreviewData } from 'ricos-schema'; import type { LinkPreviewProviders } from '../consts'; import type { LinkPreviewPluginEditorConfig } from '../types'; import { LINK_PREVIEW_TYPE } from '../types'; export declare const fetchLinkPreview: (fetchData: LinkPreviewPluginEditorConfig['fetchData'], url: string) => Promise; export declare const createLinkPreviewData: (linkData: { url: string; target?: string; rel?: string; }, { thumbnailUrl, title, description, html, fixedUrl }: LinkPreviewData & { fixedUrl: string; }, linkPreviewConfig?: LinkPreviewPluginEditorConfig) => Promise<{ config: { link: { url: string; target: string; rel: string; }; width: number | "" | undefined; alignment: string; size: string; }; thumbnail_url: string | undefined; title: string | undefined; description: string | undefined; html: string | undefined; }>; export declare const shouldAddLinkPreview: (title?: string, enableLinkPreview?: boolean) => string | false | undefined; export declare const shouldAddEmbed: (html: string | undefined, enableEmbed: boolean | LinkPreviewProviders[], url: string) => boolean | "" | undefined; export { LINK_PREVIEW_TYPE }; //# sourceMappingURL=utils.d.ts.map