/** * This file has some parts of code as the one * packages/app-page-builder/src/render/components/OEmbed.tsx * TODO @ts-refactor */ import React, { ReactElement } from "react"; import { PbEditorElement } from "../../types"; interface OEmbedPropsInitParams { props: OEmbedProps; node: HTMLElement; } export interface OEmbedProps { element: PbEditorElement; onData?: (data: { [key: string]: any; }) => { [key: string]: any; }; renderEmbed?: (props: OEmbedProps) => ReactElement; data?: any; sdk?: string; global?: keyof Window; init?: (params: OEmbedPropsInitParams) => void; } declare const _default: React.MemoExoticComponent<(props: OEmbedProps) => React.JSX.Element | null>; export default _default;