import { ChangeDetectorRef, OnChanges, OnDestroy, OnInit } from '@angular/core'; import { Observable, Subject, Subscription } from 'rxjs'; import { Configurable } from '../../configurable/configurable.service'; import { ComponentConfig, ConfigService } from '../../configuration'; import { ComponentCreator, DragDropService } from '../../dynamic-views/drag-drop.service'; import { TemplateNameDirective } from '../../utils'; import { PaletteOptions } from '../configurator.models'; import * as i0 from "@angular/core"; declare interface PaletteItem extends ComponentCreator { type: string; display?: string; iconClass?: string; title?: string; removable?: boolean; createConfig: (id: string, creator?: ComponentCreator) => Observable; } declare interface ConfigModal { configurator: TemplateNameDirective; config: ComponentConfig; configChanged: () => void; title: string; close: Subject; } export declare const defaultPaletteOptions: PaletteOptions; export declare class PaletteComponent implements OnInit, OnChanges, OnDestroy { dragDropService: DragDropService; configService: ConfigService; cdRef: ChangeDetectorRef; context: Configurable; configurators: Record; options: PaletteOptions; standardPalette: PaletteItem[]; existingPalette: PaletteItem[]; modal?: ConfigModal; constructor(dragDropService: DragDropService, configService: ConfigService, cdRef: ChangeDetectorRef); ngOnInit(): void; ngOnChanges(): void; sub: Subscription; ngOnDestroy(): void; generateAutoPalette(): void; generateExistingPalette(configs: ComponentConfig[]): void; onDndStart(item: PaletteItem): void; onDndEnd(): void; openModal(id: string, type: string, configurator?: TemplateNameDirective): Observable; onModalClose(success: boolean): void; removeItem(item: PaletteItem): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export {};