import type { YooEditor, YooptaPathIndex } from '@yoopta/editor'; import type { EmbedElement, EmbedElementProps, EmbedProvider, EmbedSizes } from '../types'; type EmbedElementOptions = { props?: Partial; }; type InsertEmbedOptions = EmbedElementOptions & { at?: YooptaPathIndex; focus?: boolean; }; type InsertEmbedFromUrlOptions = { url: string; at?: YooptaPathIndex; focus?: boolean; fetchMeta?: boolean; maxWidth?: number; }; type UpdateEmbedUrlOptions = { blockId: string; url: string; fetchMeta?: boolean; maxWidth?: number; }; export type EmbedCommandsType = { buildEmbedElements: (editor: YooEditor, options?: Partial) => EmbedElement; insertEmbed: (editor: YooEditor, options?: Partial) => void; insertEmbedFromUrl: (editor: YooEditor, options: InsertEmbedFromUrlOptions) => Promise; deleteEmbed: (editor: YooEditor, blockId: string) => void; updateEmbed: (editor: YooEditor, blockId: string, props: Partial) => void; updateEmbedUrl: (editor: YooEditor, options: UpdateEmbedUrlOptions) => Promise; updateEmbedSizes: (editor: YooEditor, blockId: string, sizes: EmbedSizes) => void; isValidEmbedUrl: (editor: YooEditor, url: string) => boolean; parseUrl: (editor: YooEditor, url: string) => EmbedProvider | null; }; export declare const EmbedCommands: EmbedCommandsType; export {}; //# sourceMappingURL=index.d.ts.map