import { BasePart, UiPartComponent, UiPartConfig } from '..'; import { TemplateResult } from '@blinkk/selective-edit'; import { DataStorage } from '../../../../utility/dataStorage'; import { DeviceData } from '../../../api'; import { EditorState } from '../../../state'; export interface PreviewFramePartConfig extends UiPartConfig { /** * State class for working with editor state. */ state: EditorState; /** * Storage class for working with settings. */ storage: DataStorage; } interface FrameSize { height?: number; width?: number; scale: number; } export declare class PreviewFramePart extends BasePart implements UiPartComponent { config: PreviewFramePartConfig; container?: HTMLElement; constructor(config: PreviewFramePartConfig); classesForPart(): Record; /** * Get the size of the container so that the device preview can be * scaled correctly with the size of the preview area. * * This is really hacky, but unknown if there is a different way in * lit-html to get the size of parent element. */ getIframeSize(device?: DeviceData, isRotated?: boolean): FrameSize; refresh(): void; template(device?: DeviceData, isRotated?: boolean): TemplateResult; } export {};