import * as i0 from '@angular/core'; import { AfterViewInit, OnDestroy, OnChanges, ElementRef, SimpleChanges } from '@angular/core'; import CreativeEditorSDK, { Configuration } from '@cesdk/cesdk-js'; interface CreativeEditorError { message: string; cause?: unknown; } type CreativeEditorLoadingState = 'idle' | 'loading' | 'loaded' | 'error'; declare class CreativeEditor implements AfterViewInit, OnDestroy, OnChanges { containerRef: ElementRef; config: Configuration; init?: (cesdk: CreativeEditorSDK) => void | Promise; width: number | string; height: number | string; className?: string; onLoadingStateChange?: (state: CreativeEditorLoadingState) => void; onError?: (error: CreativeEditorError) => void; private instance; private loadingState; private isInitializing; ngAfterViewInit(): Promise; ngOnChanges(changes: SimpleChanges): Promise; ngOnDestroy(): void; private handleLoadingStateChange; private handleError; private validateConfig; private validateInit; private initializeEditor; private reinitializeEditor; private destroyEditor; getEditorInstance(): CreativeEditorSDK | null; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export { CreativeEditor }; export type { CreativeEditorError, CreativeEditorLoadingState };