import React from 'react';
import type { LinkPreviewData } from '../ricos-types/index.js';
export type LinkNodePreviewData = {
    position: {
        top: number;
        left: number;
    };
    data: LinkPreviewData;
};
export declare class LinkPreviewPopover extends React.Component<{
    container: HTMLElement;
    fetchUrlPreviewData: (url: string) => Promise<LinkPreviewData>;
}, {
    linkPreviewData?: LinkNodePreviewData;
}> {
    constructor(props: $TSFixMe);
    removeLinkPreviewPopoverListener: () => void | null;
    componentDidMount(): void;
    componentWillUnmount(): void;
    onPreview: (url: string, position?: {
        top: number;
        left: number;
    }) => void;
    addLinkPreviewPopoverListener: (container: $TSFixMe) => void;
    render(): React.JSX.Element | null;
}
//# sourceMappingURL=link-preview-popover.d.ts.map