import { ContentPart } from './parts/content'; import { DashboardPart } from './parts/dashboard'; import { EditorState } from '../state'; import { LiveEditor, LiveEditorSelectiveEditorConfig } from '../editor'; import { MenuPart } from './parts/menu'; import { ModalsPart } from './parts/modals'; import { NotificationsPart } from './parts/notifications'; import { OnboardingPart } from './parts/onboarding'; import { OverviewPart } from './parts/overview'; import { PreviewPart } from './parts/preview'; import { TemplateResult } from '@blinkk/selective-edit'; import { ToastsPart } from './parts/toasts'; import { DataStorage } from '../../utility/dataStorage'; import { LazyUiParts } from './parts'; /** * Configuration for the editor UI. */ export interface AppUiConfig { /** * Editor. */ editor: LiveEditor; /** * Base configuration for the selective editor. */ selectiveConfig: LiveEditorSelectiveEditorConfig; /** * Editor state. */ state: EditorState; /** * Storage for the editor config. */ storage: DataStorage; } /** * UI for the editor app. * * All UI output for the editor is handled from this class. */ export declare class AppUi { config: AppUiConfig; container: HTMLElement; isPendingRender?: boolean; isRendering?: boolean; parts: LazyUiParts; constructor(config: AppUiConfig, container: HTMLElement); classesForApp(): Record; get partContent(): ContentPart; get partDashboard(): DashboardPart; get partMenu(): MenuPart; get partModals(): ModalsPart; get partNotifications(): NotificationsPart; get partOnboarding(): OnboardingPart; get partOverview(): OverviewPart; get partPreview(): PreviewPart; get partToasts(): ToastsPart; /** * Renders the app into the container. * * If a render is already in process other renders are * debounced and rerendered after the current render is complete. */ render(): void; /** * Template that is rendered for the app. * * This template is 'root' template for the entire app UI. * In other words, the entire app UI structure starts from * this template. */ template(): TemplateResult; templateContentStructure(): TemplateResult; }