UNPKG

alinea

Version:
13 lines (12 loc) 587 B
import type { PreviewMetadata } from 'alinea/core/Preview'; import { type PropsWithChildren } from 'react'; import type { LivePreview } from '../entry/EntryPreview.js'; export interface BrowserPreviewProps { url: string; registerLivePreview(api: LivePreview): void; } export declare const BrowserPreviewMetaProvider: React.FC<PropsWithChildren<{ entryId: string; }>>; export declare function usePreviewMetadata(): PreviewMetadata | undefined; export declare function BrowserPreview({ url, registerLivePreview }: BrowserPreviewProps): import("react/jsx-runtime").JSX.Element;