import { OnInit, OnChanges, EventEmitter } from '@angular/core'; import { StorageItem } from '@lamnhan/ngx-useful'; import { ConfigService, ImageCropping, JsonSchemaMetaSchemaItem } from '../../services/config/config.service'; import * as i0 from "@angular/core"; interface SchemaItem extends JsonSchemaMetaSchemaItem { value?: any; } declare type MatrixItem = SchemaItem[]; export declare class JsonEditorComponent implements OnInit, OnChanges { private configService; type?: 'record' | 'array'; recordKey?: string; schema?: JsonSchemaMetaSchemaItem[]; currentData?: any[] | Record; mode?: 'edit' | 'table' | 'raw'; save: EventEmitter; dataMatrix: SchemaItem[][]; dataRaw: string; showUploader: boolean; uploadCallerData?: { schemaItem: SchemaItem; imageCropping?: ImageCropping; }; constructor(configService: ConfigService); ngOnInit(): void; ngOnChanges(): void; openUploader(schemaItem: SchemaItem, matrixItem: MatrixItem): void; uploadChanges(media: StorageItem): void; add(): void; remove(i: number): void; submit(): boolean; private getMatrixItem; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export {};