import { Store } from '../store'; import { PreviewProxy } from './preview-proxy'; import type { PlaygroundPkgCdn } from '../../playground/utils/types-helper'; export interface PreviewOptions { pkgCdn?: PlaygroundPkgCdn; store: Store; onBeforeDestroy?: () => void; onBeforeLoad?: () => void; onLoad?: () => void; onWarning?: (msg: string) => void; onError?: (errorMsg: string) => void; } export declare class Preview { sandboxEl?: HTMLIFrameElement; previewProxy?: PreviewProxy; store: Store; pkgCdn?: PlaygroundPkgCdn; onBeforeDestroy?: () => void; onBeforeLoad?: () => void; onLoad?: () => void; onWarning?: (msg: string) => void; onError?: (errorMsg: string) => void; constructor(options: PreviewOptions); destroy(): void; createSandbox(container: HTMLElement): void; updateSandbox(): Promise; }